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

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"struct.cgp::numarray.6" = type { %"class.std::vector.7" }
%"class.std::vector.7" = type { %"struct.std::_Vector_base.8" }
%"struct.std::_Vector_base.8" = type { %"struct.std::_Vector_base<cgp::numarray_stack<unsigned int, 3>, std::allocator<cgp::numarray_stack<unsigned int, 3>>>::_Vector_impl" }
%"struct.std::_Vector_base<cgp::numarray_stack<unsigned int, 3>, std::allocator<cgp::numarray_stack<unsigned int, 3>>>::_Vector_impl" = type { %"struct.std::_Vector_base<cgp::numarray_stack<unsigned int, 3>, std::allocator<cgp::numarray_stack<unsigned int, 3>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<cgp::numarray_stack<unsigned int, 3>, std::allocator<cgp::numarray_stack<unsigned int, 3>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.cgp::mesh" = type { %"struct.cgp::numarray", %"struct.cgp::numarray", %"struct.cgp::numarray", %"struct.cgp::numarray.0", %"struct.cgp::numarray.6" }
%"struct.cgp::numarray" = type { %"class.std::vector" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<cgp::numarray_stack<float, 3>, std::allocator<cgp::numarray_stack<float, 3>>>::_Vector_impl" }
%"struct.std::_Vector_base<cgp::numarray_stack<float, 3>, std::allocator<cgp::numarray_stack<float, 3>>>::_Vector_impl" = type { %"struct.std::_Vector_base<cgp::numarray_stack<float, 3>, std::allocator<cgp::numarray_stack<float, 3>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<cgp::numarray_stack<float, 3>, std::allocator<cgp::numarray_stack<float, 3>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.cgp::numarray.0" = type { %"class.std::vector.1" }
%"class.std::vector.1" = type { %"struct.std::_Vector_base.2" }
%"struct.std::_Vector_base.2" = type { %"struct.std::_Vector_base<cgp::numarray_stack<float, 2>, std::allocator<cgp::numarray_stack<float, 2>>>::_Vector_impl" }
%"struct.std::_Vector_base<cgp::numarray_stack<float, 2>, std::allocator<cgp::numarray_stack<float, 2>>>::_Vector_impl" = type { %"struct.std::_Vector_base<cgp::numarray_stack<float, 2>, std::allocator<cgp::numarray_stack<float, 2>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<cgp::numarray_stack<float, 2>, std::allocator<cgp::numarray_stack<float, 2>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::allocator.12" = type { i8 }
%"struct.cgp::rotation_transform" = type { %"struct.cgp::quaternion" }
%"struct.cgp::quaternion" = type { %"struct.cgp::numarray_stack.15" }
%"struct.cgp::numarray_stack.15" = type { float, float, float, float }
%"struct.cgp::numarray_stack" = type { float, float, float }
%"struct.cgp::numarray_stack.16" = type { float, float }
%"struct.cgp::numarray_stack.19" = type { i32, i32, i32 }

@.str.2 = external hidden unnamed_addr constant [89 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [23 x i8], align 1
@__func__._ZN3cgp19mesh_primitive_coneEffRKNS_14numarray_stackIfLi3EEES3_bii = external hidden unnamed_addr constant [20 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [24 x i8], align 1

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

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

; Function Attrs: noreturn
declare void @_ZN3cgp10call_errorERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES7_S7_S7_i(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32), i32 noundef) #2

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #4 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #3 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3cgp14numarray_stackIfLi3EEC2IiiiEERKT_RKT0_RKT1_(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) unnamed_addr #3 align 2

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3cgp14numarray_stackIfLi3EEC2ERKfS3_S3_(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) unnamed_addr #3 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3cgp14numarray_stackIfLi2EEC2ERKfS3_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) unnamed_addr #3 align 2

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

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

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN3cgpL17connectivity_gridEmm(ptr dead_on_unwind noalias writable sret(%"struct.cgp::numarray.6") align 8, i64 noundef, i64 noundef) #4

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

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

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

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

declare noundef nonnull align 8 dereferenceable(120) ptr @_ZN3cgp4mesh17flip_connectivityEv(ptr noundef nonnull align 8 dereferenceable(120)) #5

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

declare noundef nonnull align 8 dereferenceable(120) ptr @_ZN3cgp4mesh16fill_empty_fieldEv(ptr noundef nonnull align 8 dereferenceable(120)) #5

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #9

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3cgp14numarray_stackIfLi3EEC2IiifEERKT_RKT0_RKT1_(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3cgp14numarray_stackIjLi3EEC2ImmmEERKT_RKT0_RKT1_(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3cgp19mesh_primitive_coneEffRKNS_14numarray_stackIfLi3EEES3_bii(ptr dead_on_unwind noalias writable sret(%"struct.cgp::mesh") align 8 %0, float noundef %1, float noundef %2, ptr noundef nonnull align 4 dereferenceable(12) %3, ptr noundef nonnull align 4 dereferenceable(12) %4, i1 noundef zeroext %5, i32 noundef %6, i32 noundef %7) #8 personality ptr @__gxx_personality_v0 {
  %9 = alloca ptr, align 8
  %10 = alloca float, align 4
  %11 = alloca float, align 4
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca i8, align 1
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca %"class.std::__cxx11::basic_string", align 8
  %18 = alloca %"class.std::allocator.12", align 1
  %19 = alloca ptr, align 8
  %20 = alloca i32, align 4
  %21 = alloca %"class.std::__cxx11::basic_string", align 8
  %22 = alloca %"class.std::allocator.12", align 1
  %23 = alloca %"class.std::__cxx11::basic_string", align 8
  %24 = alloca %"class.std::allocator.12", align 1
  %25 = alloca %"class.std::__cxx11::basic_string", align 8
  %26 = alloca %"class.std::allocator.12", align 1
  %27 = alloca %"class.std::__cxx11::basic_string", align 8
  %28 = alloca %"class.std::allocator.12", align 1
  %29 = alloca %"class.std::__cxx11::basic_string", align 8
  %30 = alloca %"class.std::allocator.12", align 1
  %31 = alloca %"class.std::__cxx11::basic_string", align 8
  %32 = alloca %"class.std::allocator.12", align 1
  %33 = alloca %"class.std::__cxx11::basic_string", align 8
  %34 = alloca %"class.std::allocator.12", align 1
  %35 = alloca %"class.std::__cxx11::basic_string", align 8
  %36 = alloca %"class.std::allocator.12", align 1
  %37 = alloca %"class.std::__cxx11::basic_string", align 8
  %38 = alloca %"class.std::allocator.12", align 1
  %39 = alloca %"class.std::__cxx11::basic_string", align 8
  %40 = alloca %"class.std::allocator.12", align 1
  %41 = alloca %"class.std::__cxx11::basic_string", align 8
  %42 = alloca %"class.std::allocator.12", align 1
  %43 = alloca %"class.std::__cxx11::basic_string", align 8
  %44 = alloca %"class.std::allocator.12", align 1
  %45 = alloca %"class.std::__cxx11::basic_string", align 8
  %46 = alloca %"class.std::allocator.12", align 1
  %47 = alloca %"class.std::__cxx11::basic_string", align 8
  %48 = alloca %"class.std::allocator.12", align 1
  %49 = alloca %"class.std::__cxx11::basic_string", align 8
  %50 = alloca %"class.std::allocator.12", align 1
  %51 = alloca i1, align 1
  %52 = alloca %"struct.cgp::rotation_transform", align 4
  %53 = alloca %"struct.cgp::numarray_stack", align 4
  %54 = alloca i32, align 4
  %55 = alloca i32, align 4
  %56 = alloca i32, align 4
  %57 = alloca i64, align 8
  %58 = alloca i32, align 4
  %59 = alloca i64, align 8
  %60 = alloca float, align 4
  %61 = alloca float, align 4
  %62 = alloca float, align 4
  %63 = alloca %"struct.cgp::numarray_stack", align 4
  %64 = alloca %"struct.cgp::numarray_stack", align 4
  %65 = alloca %"struct.cgp::numarray_stack", align 4
  %66 = alloca float, align 4
  %67 = alloca float, align 4
  %68 = alloca float, align 4
  %69 = alloca { <2 x float>, float }, align 8
  %70 = alloca { <2 x float>, float }, align 8
  %71 = alloca %"struct.cgp::numarray_stack", align 4
  %72 = alloca %"struct.cgp::numarray_stack", align 4
  %73 = alloca %"struct.cgp::numarray_stack", align 4
  %74 = alloca float, align 4
  %75 = alloca float, align 4
  %76 = alloca float, align 4
  %77 = alloca { <2 x float>, float }, align 8
  %78 = alloca { <2 x float>, float }, align 8
  %79 = alloca %"struct.cgp::numarray_stack.16", align 4
  %80 = alloca float, align 4
  %81 = alloca float, align 4
  %82 = alloca %"struct.cgp::numarray.6", align 8
  %83 = alloca i64, align 8
  %84 = alloca float, align 4
  %85 = alloca %"struct.cgp::numarray_stack", align 4
  %86 = alloca %"struct.cgp::numarray_stack", align 4
  %87 = alloca %"struct.cgp::numarray_stack", align 4
  %88 = alloca i32, align 4
  %89 = alloca i32, align 4
  %90 = alloca { <2 x float>, float }, align 8
  %91 = alloca { <2 x float>, float }, align 8
  %92 = alloca %"struct.cgp::numarray_stack", align 4
  %93 = alloca %"struct.cgp::numarray_stack", align 4
  %94 = alloca %"struct.cgp::numarray_stack", align 4
  %95 = alloca float, align 4
  %96 = alloca float, align 4
  %97 = alloca float, align 4
  %98 = alloca { <2 x float>, float }, align 8
  %99 = alloca { <2 x float>, float }, align 8
  %100 = alloca %"struct.cgp::numarray_stack.16", align 4
  %101 = alloca float, align 4
  %102 = alloca float, align 4
  %103 = alloca i64, align 8
  %104 = alloca %"struct.cgp::numarray_stack.19", align 4
  %105 = alloca i64, align 8
  %106 = alloca i64, align 8
  %107 = alloca i64, align 8
  %108 = alloca %"struct.cgp::mesh", align 8
  store ptr %0, ptr %9, align 8
  store float %1, ptr %10, align 4, !tbaa !5
  store float %2, ptr %11, align 4, !tbaa !5
  store ptr %3, ptr %12, align 8, !tbaa !9
  store ptr %4, ptr %13, align 8, !tbaa !9
  %109 = zext i1 %5 to i8
  store i8 %109, ptr %14, align 1, !tbaa !11
  store i32 %6, ptr %15, align 4, !tbaa !13
  store i32 %7, ptr %16, align 4, !tbaa !13
  %110 = load float, ptr %10, align 4, !tbaa !5
  %111 = fcmp ogt float %110, 0.000000e+00
  %112 = zext i1 %111 to i32
  %113 = icmp eq i32 %112, 0
  br i1 %113, label %114, label %144

114:                                              ; preds = %8
  call void @llvm.lifetime.start.p0(i64 32, ptr %17) #10
  call void @llvm.lifetime.start.p0(i64 1, ptr %18) #10
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %18) #10
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %17, ptr noundef @.str.3, ptr noundef nonnull align 1 dereferenceable(1) %18)
          to label %115 unwind label %120

115:                                              ; preds = %114
  call void @llvm.lifetime.start.p0(i64 32, ptr %21) #10
  call void @llvm.lifetime.start.p0(i64 1, ptr %22) #10
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %22) #10
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %21, ptr noundef @.str.23, ptr noundef nonnull align 1 dereferenceable(1) %22)
          to label %116 unwind label %124

116:                                              ; preds = %115
  call void @llvm.lifetime.start.p0(i64 32, ptr %23) #10
  call void @llvm.lifetime.start.p0(i64 1, ptr %24) #10
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %24) #10
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %23, ptr noundef @.str.2, ptr noundef nonnull align 1 dereferenceable(1) %24)
          to label %117 unwind label %128

117:                                              ; preds = %116
  call void @llvm.lifetime.start.p0(i64 32, ptr %25) #10
  call void @llvm.lifetime.start.p0(i64 1, ptr %26) #10
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %26) #10
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %25, ptr noundef @__func__._ZN3cgp19mesh_primitive_coneEffRKNS_14numarray_stackIfLi3EEES3_bii, ptr noundef nonnull align 1 dereferenceable(1) %26)
          to label %118 unwind label %132

118:                                              ; preds = %117
  invoke void @_ZN3cgp10call_errorERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES7_S7_S7_i(ptr noundef nonnull align 8 dereferenceable(32) %17, ptr noundef nonnull align 8 dereferenceable(32) %21, ptr noundef nonnull align 8 dereferenceable(32) %23, ptr noundef nonnull align 8 dereferenceable(32) %25, i32 noundef 316) #11
          to label %119 unwind label %136

119:                                              ; preds = %118
  unreachable

120:                                              ; preds = %114
  %121 = landingpad { ptr, i32 }
          cleanup
  %122 = extractvalue { ptr, i32 } %121, 0
  store ptr %122, ptr %19, align 8
  %123 = extractvalue { ptr, i32 } %121, 1
  store i32 %123, ptr %20, align 4
  br label %143

124:                                              ; preds = %115
  %125 = landingpad { ptr, i32 }
          cleanup
  %126 = extractvalue { ptr, i32 } %125, 0
  store ptr %126, ptr %19, align 8
  %127 = extractvalue { ptr, i32 } %125, 1
  store i32 %127, ptr %20, align 4
  br label %142

128:                                              ; preds = %116
  %129 = landingpad { ptr, i32 }
          cleanup
  %130 = extractvalue { ptr, i32 } %129, 0
  store ptr %130, ptr %19, align 8
  %131 = extractvalue { ptr, i32 } %129, 1
  store i32 %131, ptr %20, align 4
  br label %141

132:                                              ; preds = %117
  %133 = landingpad { ptr, i32 }
          cleanup
  %134 = extractvalue { ptr, i32 } %133, 0
  store ptr %134, ptr %19, align 8
  %135 = extractvalue { ptr, i32 } %133, 1
  store i32 %135, ptr %20, align 4
  br label %140

136:                                              ; preds = %118
  %137 = landingpad { ptr, i32 }
          cleanup
  %138 = extractvalue { ptr, i32 } %137, 0
  store ptr %138, ptr %19, align 8
  %139 = extractvalue { ptr, i32 } %137, 1
  store i32 %139, ptr %20, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %25) #10
  br label %140

140:                                              ; preds = %136, %132
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %26) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr %26) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr %25) #10
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %23) #10
  br label %141

141:                                              ; preds = %140, %128
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %24) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr %24) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr %23) #10
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %21) #10
  br label %142

142:                                              ; preds = %141, %124
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %22) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr %22) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr %21) #10
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %17) #10
  br label %143

143:                                              ; preds = %142, %120
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %18) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr %18) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr %17) #10
  br label %575

144:                                              ; preds = %8
  %145 = load float, ptr %11, align 4, !tbaa !5
  %146 = fcmp ogt float %145, 0.000000e+00
  %147 = zext i1 %146 to i32
  %148 = icmp eq i32 %147, 0
  br i1 %148, label %149, label %179

149:                                              ; preds = %144
  call void @llvm.lifetime.start.p0(i64 32, ptr %27) #10
  call void @llvm.lifetime.start.p0(i64 1, ptr %28) #10
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %28) #10
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %27, ptr noundef @.str.24, ptr noundef nonnull align 1 dereferenceable(1) %28)
          to label %150 unwind label %155

150:                                              ; preds = %149
  call void @llvm.lifetime.start.p0(i64 32, ptr %29) #10
  call void @llvm.lifetime.start.p0(i64 1, ptr %30) #10
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %30) #10
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %29, ptr noundef @.str.25, ptr noundef nonnull align 1 dereferenceable(1) %30)
          to label %151 unwind label %159

151:                                              ; preds = %150
  call void @llvm.lifetime.start.p0(i64 32, ptr %31) #10
  call void @llvm.lifetime.start.p0(i64 1, ptr %32) #10
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %32) #10
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %31, ptr noundef @.str.2, ptr noundef nonnull align 1 dereferenceable(1) %32)
          to label %152 unwind label %163

152:                                              ; preds = %151
  call void @llvm.lifetime.start.p0(i64 32, ptr %33) #10
  call void @llvm.lifetime.start.p0(i64 1, ptr %34) #10
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %34) #10
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %33, ptr noundef @__func__._ZN3cgp19mesh_primitive_coneEffRKNS_14numarray_stackIfLi3EEES3_bii, ptr noundef nonnull align 1 dereferenceable(1) %34)
          to label %153 unwind label %167

153:                                              ; preds = %152
  invoke void @_ZN3cgp10call_errorERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES7_S7_S7_i(ptr noundef nonnull align 8 dereferenceable(32) %27, ptr noundef nonnull align 8 dereferenceable(32) %29, ptr noundef nonnull align 8 dereferenceable(32) %31, ptr noundef nonnull align 8 dereferenceable(32) %33, i32 noundef 317) #11
          to label %154 unwind label %171

154:                                              ; preds = %153
  unreachable

155:                                              ; preds = %149
  %156 = landingpad { ptr, i32 }
          cleanup
  %157 = extractvalue { ptr, i32 } %156, 0
  store ptr %157, ptr %19, align 8
  %158 = extractvalue { ptr, i32 } %156, 1
  store i32 %158, ptr %20, align 4
  br label %178

159:                                              ; preds = %150
  %160 = landingpad { ptr, i32 }
          cleanup
  %161 = extractvalue { ptr, i32 } %160, 0
  store ptr %161, ptr %19, align 8
  %162 = extractvalue { ptr, i32 } %160, 1
  store i32 %162, ptr %20, align 4
  br label %177

163:                                              ; preds = %151
  %164 = landingpad { ptr, i32 }
          cleanup
  %165 = extractvalue { ptr, i32 } %164, 0
  store ptr %165, ptr %19, align 8
  %166 = extractvalue { ptr, i32 } %164, 1
  store i32 %166, ptr %20, align 4
  br label %176

167:                                              ; preds = %152
  %168 = landingpad { ptr, i32 }
          cleanup
  %169 = extractvalue { ptr, i32 } %168, 0
  store ptr %169, ptr %19, align 8
  %170 = extractvalue { ptr, i32 } %168, 1
  store i32 %170, ptr %20, align 4
  br label %175

171:                                              ; preds = %153
  %172 = landingpad { ptr, i32 }
          cleanup
  %173 = extractvalue { ptr, i32 } %172, 0
  store ptr %173, ptr %19, align 8
  %174 = extractvalue { ptr, i32 } %172, 1
  store i32 %174, ptr %20, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %33) #10
  br label %175

175:                                              ; preds = %171, %167
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %34) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr %34) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr %33) #10
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %31) #10
  br label %176

176:                                              ; preds = %175, %163
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %32) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr %32) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr %31) #10
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %29) #10
  br label %177

177:                                              ; preds = %176, %159
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %30) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr %30) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr %29) #10
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %27) #10
  br label %178

178:                                              ; preds = %177, %155
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %28) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr %28) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr %27) #10
  br label %575

179:                                              ; preds = %144
  %180 = load i32, ptr %15, align 4, !tbaa !13
  %181 = icmp sgt i32 %180, 2
  %182 = zext i1 %181 to i32
  %183 = icmp eq i32 %182, 0
  br i1 %183, label %184, label %214

184:                                              ; preds = %179
  call void @llvm.lifetime.start.p0(i64 32, ptr %35) #10
  call void @llvm.lifetime.start.p0(i64 1, ptr %36) #10
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %36) #10
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %35, ptr noundef @.str.20, ptr noundef nonnull align 1 dereferenceable(1) %36)
          to label %185 unwind label %190

185:                                              ; preds = %184
  call void @llvm.lifetime.start.p0(i64 32, ptr %37) #10
  call void @llvm.lifetime.start.p0(i64 1, ptr %38) #10
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %38) #10
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %37, ptr noundef @.str.26, ptr noundef nonnull align 1 dereferenceable(1) %38)
          to label %186 unwind label %194

186:                                              ; preds = %185
  call void @llvm.lifetime.start.p0(i64 32, ptr %39) #10
  call void @llvm.lifetime.start.p0(i64 1, ptr %40) #10
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %40) #10
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %39, ptr noundef @.str.2, ptr noundef nonnull align 1 dereferenceable(1) %40)
          to label %187 unwind label %198

187:                                              ; preds = %186
  call void @llvm.lifetime.start.p0(i64 32, ptr %41) #10
  call void @llvm.lifetime.start.p0(i64 1, ptr %42) #10
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %42) #10
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %41, ptr noundef @__func__._ZN3cgp19mesh_primitive_coneEffRKNS_14numarray_stackIfLi3EEES3_bii, ptr noundef nonnull align 1 dereferenceable(1) %42)
          to label %188 unwind label %202

188:                                              ; preds = %187
  invoke void @_ZN3cgp10call_errorERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES7_S7_S7_i(ptr noundef nonnull align 8 dereferenceable(32) %35, ptr noundef nonnull align 8 dereferenceable(32) %37, ptr noundef nonnull align 8 dereferenceable(32) %39, ptr noundef nonnull align 8 dereferenceable(32) %41, i32 noundef 318) #11
          to label %189 unwind label %206

189:                                              ; preds = %188
  unreachable

190:                                              ; preds = %184
  %191 = landingpad { ptr, i32 }
          cleanup
  %192 = extractvalue { ptr, i32 } %191, 0
  store ptr %192, ptr %19, align 8
  %193 = extractvalue { ptr, i32 } %191, 1
  store i32 %193, ptr %20, align 4
  br label %213

194:                                              ; preds = %185
  %195 = landingpad { ptr, i32 }
          cleanup
  %196 = extractvalue { ptr, i32 } %195, 0
  store ptr %196, ptr %19, align 8
  %197 = extractvalue { ptr, i32 } %195, 1
  store i32 %197, ptr %20, align 4
  br label %212

198:                                              ; preds = %186
  %199 = landingpad { ptr, i32 }
          cleanup
  %200 = extractvalue { ptr, i32 } %199, 0
  store ptr %200, ptr %19, align 8
  %201 = extractvalue { ptr, i32 } %199, 1
  store i32 %201, ptr %20, align 4
  br label %211

202:                                              ; preds = %187
  %203 = landingpad { ptr, i32 }
          cleanup
  %204 = extractvalue { ptr, i32 } %203, 0
  store ptr %204, ptr %19, align 8
  %205 = extractvalue { ptr, i32 } %203, 1
  store i32 %205, ptr %20, align 4
  br label %210

206:                                              ; preds = %188
  %207 = landingpad { ptr, i32 }
          cleanup
  %208 = extractvalue { ptr, i32 } %207, 0
  store ptr %208, ptr %19, align 8
  %209 = extractvalue { ptr, i32 } %207, 1
  store i32 %209, ptr %20, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %41) #10
  br label %210

210:                                              ; preds = %206, %202
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %42) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr %42) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr %41) #10
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %39) #10
  br label %211

211:                                              ; preds = %210, %198
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %40) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr %40) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr %39) #10
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %37) #10
  br label %212

212:                                              ; preds = %211, %194
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %38) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr %38) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr %37) #10
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %35) #10
  br label %213

213:                                              ; preds = %212, %190
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %36) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr %36) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr %35) #10
  br label %575

214:                                              ; preds = %179
  %215 = load i32, ptr %16, align 4, !tbaa !13
  %216 = icmp sgt i32 %215, 1
  %217 = zext i1 %216 to i32
  %218 = icmp eq i32 %217, 0
  br i1 %218, label %219, label %249

219:                                              ; preds = %214
  call void @llvm.lifetime.start.p0(i64 32, ptr %43) #10
  call void @llvm.lifetime.start.p0(i64 1, ptr %44) #10
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %44) #10
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %43, ptr noundef @.str.16, ptr noundef nonnull align 1 dereferenceable(1) %44)
          to label %220 unwind label %225

220:                                              ; preds = %219
  call void @llvm.lifetime.start.p0(i64 32, ptr %45) #10
  call void @llvm.lifetime.start.p0(i64 1, ptr %46) #10
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %46) #10
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %45, ptr noundef @.str.27, ptr noundef nonnull align 1 dereferenceable(1) %46)
          to label %221 unwind label %229

221:                                              ; preds = %220
  call void @llvm.lifetime.start.p0(i64 32, ptr %47) #10
  call void @llvm.lifetime.start.p0(i64 1, ptr %48) #10
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %48) #10
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %47, ptr noundef @.str.2, ptr noundef nonnull align 1 dereferenceable(1) %48)
          to label %222 unwind label %233

222:                                              ; preds = %221
  call void @llvm.lifetime.start.p0(i64 32, ptr %49) #10
  call void @llvm.lifetime.start.p0(i64 1, ptr %50) #10
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %50) #10
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %49, ptr noundef @__func__._ZN3cgp19mesh_primitive_coneEffRKNS_14numarray_stackIfLi3EEES3_bii, ptr noundef nonnull align 1 dereferenceable(1) %50)
          to label %223 unwind label %237

223:                                              ; preds = %222
  invoke void @_ZN3cgp10call_errorERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES7_S7_S7_i(ptr noundef nonnull align 8 dereferenceable(32) %43, ptr noundef nonnull align 8 dereferenceable(32) %45, ptr noundef nonnull align 8 dereferenceable(32) %47, ptr noundef nonnull align 8 dereferenceable(32) %49, i32 noundef 319) #11
          to label %224 unwind label %241

224:                                              ; preds = %223
  unreachable

225:                                              ; preds = %219
  %226 = landingpad { ptr, i32 }
          cleanup
  %227 = extractvalue { ptr, i32 } %226, 0
  store ptr %227, ptr %19, align 8
  %228 = extractvalue { ptr, i32 } %226, 1
  store i32 %228, ptr %20, align 4
  br label %248

229:                                              ; preds = %220
  %230 = landingpad { ptr, i32 }
          cleanup
  %231 = extractvalue { ptr, i32 } %230, 0
  store ptr %231, ptr %19, align 8
  %232 = extractvalue { ptr, i32 } %230, 1
  store i32 %232, ptr %20, align 4
  br label %247

233:                                              ; preds = %221
  %234 = landingpad { ptr, i32 }
          cleanup
  %235 = extractvalue { ptr, i32 } %234, 0
  store ptr %235, ptr %19, align 8
  %236 = extractvalue { ptr, i32 } %234, 1
  store i32 %236, ptr %20, align 4
  br label %246

237:                                              ; preds = %222
  %238 = landingpad { ptr, i32 }
          cleanup
  %239 = extractvalue { ptr, i32 } %238, 0
  store ptr %239, ptr %19, align 8
  %240 = extractvalue { ptr, i32 } %238, 1
  store i32 %240, ptr %20, align 4
  br label %245

241:                                              ; preds = %223
  %242 = landingpad { ptr, i32 }
          cleanup
  %243 = extractvalue { ptr, i32 } %242, 0
  store ptr %243, ptr %19, align 8
  %244 = extractvalue { ptr, i32 } %242, 1
  store i32 %244, ptr %20, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %49) #10
  br label %245

245:                                              ; preds = %241, %237
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %50) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr %50) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr %49) #10
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %47) #10
  br label %246

246:                                              ; preds = %245, %233
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %48) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr %48) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr %47) #10
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %45) #10
  br label %247

247:                                              ; preds = %246, %229
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %46) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr %46) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr %45) #10
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %43) #10
  br label %248

248:                                              ; preds = %247, %225
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %44) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr %44) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr %43) #10
  br label %575

249:                                              ; preds = %214
  store i1 false, ptr %51, align 1
  call void @_ZN3cgp4meshC2Ev(ptr noundef nonnull align 8 dereferenceable(120) %0)
  call void @llvm.lifetime.start.p0(i64 16, ptr %52) #10
  call void @llvm.lifetime.start.p0(i64 12, ptr %53) #10
  call void @llvm.lifetime.start.p0(i64 4, ptr %54) #10
  store i32 0, ptr %54, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %55) #10
  store i32 0, ptr %55, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %56) #10
  store i32 1, ptr %56, align 4, !tbaa !13
  invoke void @_ZN3cgp14numarray_stackIfLi3EEC2IiiiEERKT_RKT0_RKT1_(ptr noundef nonnull align 4 dereferenceable(12) %53, ptr noundef nonnull align 4 dereferenceable(4) %54, ptr noundef nonnull align 4 dereferenceable(4) %55, ptr noundef nonnull align 4 dereferenceable(4) %56)
          to label %250 unwind label %266

250:                                              ; preds = %249
  %251 = load ptr, ptr %13, align 8, !tbaa !9
  %252 = invoke { <2 x float>, <2 x float> } @_ZN3cgp18rotation_transform21from_vector_transformERKNS_14numarray_stackIfLi3EEES4_(ptr noundef nonnull align 4 dereferenceable(12) %53, ptr noundef nonnull align 4 dereferenceable(12) %251)
          to label %253 unwind label %266

253:                                              ; preds = %250
  %254 = getelementptr inbounds %"struct.cgp::rotation_transform", ptr %52, i32 0, i32 0
  %255 = getelementptr inbounds %"struct.cgp::quaternion", ptr %254, i32 0, i32 0
  %256 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %255, i32 0, i32 0
  %257 = extractvalue { <2 x float>, <2 x float> } %252, 0
  store <2 x float> %257, ptr %256, align 4
  %258 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %255, i32 0, i32 1
  %259 = extractvalue { <2 x float>, <2 x float> } %252, 1
  store <2 x float> %259, ptr %258, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %56) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %55) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %54) #10
  call void @llvm.lifetime.end.p0(i64 12, ptr %53) #10
  call void @llvm.lifetime.start.p0(i64 8, ptr %57) #10
  store i64 0, ptr %57, align 8, !tbaa !15
  br label %260

260:                                              ; preds = %404, %253
  %261 = load i64, ptr %57, align 8, !tbaa !15
  %262 = load i32, ptr %15, align 4, !tbaa !13
  %263 = sext i32 %262 to i64
  %264 = icmp ult i64 %261, %263
  br i1 %264, label %270, label %265

265:                                              ; preds = %260
  store i32 2, ptr %58, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %57) #10
  br label %407

266:                                              ; preds = %250, %249
  %267 = landingpad { ptr, i32 }
          cleanup
  %268 = extractvalue { ptr, i32 } %267, 0
  store ptr %268, ptr %19, align 8
  %269 = extractvalue { ptr, i32 } %267, 1
  store i32 %269, ptr %20, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %56) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %55) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %54) #10
  call void @llvm.lifetime.end.p0(i64 12, ptr %53) #10
  br label %572

270:                                              ; preds = %260
  call void @llvm.lifetime.start.p0(i64 8, ptr %59) #10
  store i64 0, ptr %59, align 8, !tbaa !15
  br label %271

271:                                              ; preds = %356, %270
  %272 = load i64, ptr %59, align 8, !tbaa !15
  %273 = load i32, ptr %16, align 4, !tbaa !13
  %274 = sext i32 %273 to i64
  %275 = icmp ult i64 %272, %274
  br i1 %275, label %277, label %276

276:                                              ; preds = %271
  store i32 5, ptr %58, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %59) #10
  br label %403

277:                                              ; preds = %271
  call void @llvm.lifetime.start.p0(i64 4, ptr %60) #10
  %278 = load i64, ptr %57, align 8, !tbaa !15
  %279 = uitofp i64 %278 to float
  %280 = load i32, ptr %15, align 4, !tbaa !13
  %281 = sitofp i32 %280 to float
  %282 = fsub float %281, 1.000000e+00
  %283 = fdiv float %279, %282
  store float %283, ptr %60, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %61) #10
  %284 = load i64, ptr %59, align 8, !tbaa !15
  %285 = uitofp i64 %284 to float
  %286 = load i32, ptr %16, align 4, !tbaa !13
  %287 = sitofp i32 %286 to float
  %288 = fdiv float %285, %287
  store float %288, ptr %61, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %62) #10
  %289 = load float, ptr %10, align 4, !tbaa !5
  %290 = load float, ptr %61, align 4, !tbaa !5
  %291 = fsub float 1.000000e+00, %290
  %292 = fmul float %289, %291
  store float %292, ptr %62, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 12, ptr %63) #10
  call void @llvm.lifetime.start.p0(i64 12, ptr %64) #10
  call void @llvm.lifetime.start.p0(i64 12, ptr %65) #10
  call void @llvm.lifetime.start.p0(i64 4, ptr %66) #10
  %293 = load float, ptr %62, align 4, !tbaa !5
  %294 = load float, ptr %60, align 4, !tbaa !5
  %295 = fmul float 0x401921FA00000000, %294
  %296 = invoke noundef float @_ZSt3cosf(float noundef %295)
          to label %297 unwind label %359

297:                                              ; preds = %277
  %298 = fmul float %293, %296
  store float %298, ptr %66, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %67) #10
  %299 = load float, ptr %62, align 4, !tbaa !5
  %300 = load float, ptr %60, align 4, !tbaa !5
  %301 = fmul float 0x401921FA00000000, %300
  %302 = invoke noundef float @_ZSt3sinf(float noundef %301)
          to label %303 unwind label %363

303:                                              ; preds = %297
  %304 = fmul float %299, %302
  store float %304, ptr %67, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %68) #10
  %305 = load float, ptr %11, align 4, !tbaa !5
  %306 = load float, ptr %61, align 4, !tbaa !5
  %307 = fmul float %305, %306
  store float %307, ptr %68, align 4, !tbaa !5
  invoke void @_ZN3cgp14numarray_stackIfLi3EEC2ERKfS3_S3_(ptr noundef nonnull align 4 dereferenceable(12) %65, ptr noundef nonnull align 4 dereferenceable(4) %66, ptr noundef nonnull align 4 dereferenceable(4) %67, ptr noundef nonnull align 4 dereferenceable(4) %68)
          to label %308 unwind label %367

308:                                              ; preds = %303
  %309 = invoke { <2 x float>, float } @_ZN3cgpmlERKNS_18rotation_transformERKNS_14numarray_stackIfLi3EEE(ptr noundef nonnull align 4 dereferenceable(16) %52, ptr noundef nonnull align 4 dereferenceable(12) %65)
          to label %310 unwind label %367

310:                                              ; preds = %308
  store { <2 x float>, float } %309, ptr %69, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %64, ptr align 8 %69, i64 12, i1 false)
  %311 = load ptr, ptr %12, align 8, !tbaa !9
  %312 = invoke { <2 x float>, float } @_ZN3cgpplERKNS_14numarray_stackIfLi3EEES3_(ptr noundef nonnull align 4 dereferenceable(12) %64, ptr noundef nonnull align 4 dereferenceable(12) %311)
          to label %313 unwind label %367

313:                                              ; preds = %310
  store { <2 x float>, float } %312, ptr %70, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %63, ptr align 8 %70, i64 12, i1 false)
  call void @llvm.lifetime.end.p0(i64 4, ptr %68) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %67) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %66) #10
  call void @llvm.lifetime.end.p0(i64 12, ptr %65) #10
  call void @llvm.lifetime.end.p0(i64 12, ptr %64) #10
  call void @llvm.lifetime.start.p0(i64 12, ptr %71) #10
  call void @llvm.lifetime.start.p0(i64 12, ptr %72) #10
  call void @llvm.lifetime.start.p0(i64 12, ptr %73) #10
  call void @llvm.lifetime.start.p0(i64 4, ptr %74) #10
  %314 = load float, ptr %60, align 4, !tbaa !5
  %315 = fmul float 0x401921FA00000000, %314
  %316 = invoke noundef float @_ZSt3cosf(float noundef %315)
          to label %317 unwind label %373

317:                                              ; preds = %313
  store float %316, ptr %74, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %75) #10
  %318 = load float, ptr %60, align 4, !tbaa !5
  %319 = fmul float 0x401921FA00000000, %318
  %320 = invoke noundef float @_ZSt3sinf(float noundef %319)
          to label %321 unwind label %377

321:                                              ; preds = %317
  store float %320, ptr %75, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %76) #10
  %322 = load float, ptr %10, align 4, !tbaa !5
  %323 = load float, ptr %11, align 4, !tbaa !5
  %324 = fdiv float %322, %323
  store float %324, ptr %76, align 4, !tbaa !5
  invoke void @_ZN3cgp14numarray_stackIfLi3EEC2ERKfS3_S3_(ptr noundef nonnull align 4 dereferenceable(12) %73, ptr noundef nonnull align 4 dereferenceable(4) %74, ptr noundef nonnull align 4 dereferenceable(4) %75, ptr noundef nonnull align 4 dereferenceable(4) %76)
          to label %325 unwind label %381

325:                                              ; preds = %321
  %326 = invoke { <2 x float>, float } @_ZN3cgp9normalizeIfLi3EEENS_14numarray_stackIT_XT0_EEERKS3_(ptr noundef nonnull align 4 dereferenceable(12) %73)
          to label %327 unwind label %381

327:                                              ; preds = %325
  store { <2 x float>, float } %326, ptr %77, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %72, ptr align 8 %77, i64 12, i1 false)
  %328 = invoke { <2 x float>, float } @_ZN3cgpmlERKNS_18rotation_transformERKNS_14numarray_stackIfLi3EEE(ptr noundef nonnull align 4 dereferenceable(16) %52, ptr noundef nonnull align 4 dereferenceable(12) %72)
          to label %329 unwind label %381

329:                                              ; preds = %327
  store { <2 x float>, float } %328, ptr %78, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %71, ptr align 8 %78, i64 12, i1 false)
  call void @llvm.lifetime.end.p0(i64 4, ptr %76) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %75) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %74) #10
  call void @llvm.lifetime.end.p0(i64 12, ptr %73) #10
  call void @llvm.lifetime.end.p0(i64 12, ptr %72) #10
  call void @llvm.lifetime.start.p0(i64 8, ptr %79) #10
  call void @llvm.lifetime.start.p0(i64 4, ptr %80) #10
  %330 = load float, ptr %61, align 4, !tbaa !5
  %331 = fsub float 1.000000e+00, %330
  %332 = load float, ptr %60, align 4, !tbaa !5
  %333 = fmul float 0x401921FA00000000, %332
  %334 = invoke noundef float @_ZSt3cosf(float noundef %333)
          to label %335 unwind label %387

335:                                              ; preds = %329
  %336 = fmul float %331, %334
  %337 = call float @llvm.fmuladd.f32(float %336, float 5.000000e-01, float 5.000000e-01)
  store float %337, ptr %80, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %81) #10
  %338 = load float, ptr %61, align 4, !tbaa !5
  %339 = fsub float 1.000000e+00, %338
  %340 = load float, ptr %60, align 4, !tbaa !5
  %341 = fmul float 0x401921FA00000000, %340
  %342 = invoke noundef float @_ZSt3sinf(float noundef %341)
          to label %343 unwind label %391

343:                                              ; preds = %335
  %344 = fmul float %339, %342
  %345 = call float @llvm.fmuladd.f32(float %344, float 5.000000e-01, float 5.000000e-01)
  store float %345, ptr %81, align 4, !tbaa !5
  invoke void @_ZN3cgp14numarray_stackIfLi2EEC2ERKfS3_(ptr noundef nonnull align 4 dereferenceable(8) %79, ptr noundef nonnull align 4 dereferenceable(4) %80, ptr noundef nonnull align 4 dereferenceable(4) %81)
          to label %346 unwind label %391

346:                                              ; preds = %343
  call void @llvm.lifetime.end.p0(i64 4, ptr %81) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %80) #10
  %347 = getelementptr inbounds %"struct.cgp::mesh", ptr %0, i32 0, i32 0
  %348 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN3cgp8numarrayINS_14numarray_stackIfLi3EEEE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %347, ptr noundef nonnull align 4 dereferenceable(12) %63)
          to label %349 unwind label %396

349:                                              ; preds = %346
  %350 = getelementptr inbounds %"struct.cgp::mesh", ptr %0, i32 0, i32 1
  %351 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN3cgp8numarrayINS_14numarray_stackIfLi3EEEE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %350, ptr noundef nonnull align 4 dereferenceable(12) %71)
          to label %352 unwind label %396

352:                                              ; preds = %349
  %353 = getelementptr inbounds %"struct.cgp::mesh", ptr %0, i32 0, i32 3
  %354 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN3cgp8numarrayINS_14numarray_stackIfLi2EEEE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %353, ptr noundef nonnull align 4 dereferenceable(8) %79)
          to label %355 unwind label %396

355:                                              ; preds = %352
  call void @llvm.lifetime.end.p0(i64 8, ptr %79) #10
  call void @llvm.lifetime.end.p0(i64 12, ptr %71) #10
  call void @llvm.lifetime.end.p0(i64 12, ptr %63) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %62) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %61) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %60) #10
  br label %356

356:                                              ; preds = %355
  %357 = load i64, ptr %59, align 8, !tbaa !15
  %358 = add i64 %357, 1
  store i64 %358, ptr %59, align 8, !tbaa !15
  br label %271, !llvm.loop !17

359:                                              ; preds = %277
  %360 = landingpad { ptr, i32 }
          cleanup
  %361 = extractvalue { ptr, i32 } %360, 0
  store ptr %361, ptr %19, align 8
  %362 = extractvalue { ptr, i32 } %360, 1
  store i32 %362, ptr %20, align 4
  br label %372

363:                                              ; preds = %297
  %364 = landingpad { ptr, i32 }
          cleanup
  %365 = extractvalue { ptr, i32 } %364, 0
  store ptr %365, ptr %19, align 8
  %366 = extractvalue { ptr, i32 } %364, 1
  store i32 %366, ptr %20, align 4
  br label %371

367:                                              ; preds = %310, %308, %303
  %368 = landingpad { ptr, i32 }
          cleanup
  %369 = extractvalue { ptr, i32 } %368, 0
  store ptr %369, ptr %19, align 8
  %370 = extractvalue { ptr, i32 } %368, 1
  store i32 %370, ptr %20, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %68) #10
  br label %371

371:                                              ; preds = %367, %363
  call void @llvm.lifetime.end.p0(i64 4, ptr %67) #10
  br label %372

372:                                              ; preds = %371, %359
  call void @llvm.lifetime.end.p0(i64 4, ptr %66) #10
  call void @llvm.lifetime.end.p0(i64 12, ptr %65) #10
  call void @llvm.lifetime.end.p0(i64 12, ptr %64) #10
  br label %402

373:                                              ; preds = %313
  %374 = landingpad { ptr, i32 }
          cleanup
  %375 = extractvalue { ptr, i32 } %374, 0
  store ptr %375, ptr %19, align 8
  %376 = extractvalue { ptr, i32 } %374, 1
  store i32 %376, ptr %20, align 4
  br label %386

377:                                              ; preds = %317
  %378 = landingpad { ptr, i32 }
          cleanup
  %379 = extractvalue { ptr, i32 } %378, 0
  store ptr %379, ptr %19, align 8
  %380 = extractvalue { ptr, i32 } %378, 1
  store i32 %380, ptr %20, align 4
  br label %385

381:                                              ; preds = %327, %325, %321
  %382 = landingpad { ptr, i32 }
          cleanup
  %383 = extractvalue { ptr, i32 } %382, 0
  store ptr %383, ptr %19, align 8
  %384 = extractvalue { ptr, i32 } %382, 1
  store i32 %384, ptr %20, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %76) #10
  br label %385

385:                                              ; preds = %381, %377
  call void @llvm.lifetime.end.p0(i64 4, ptr %75) #10
  br label %386

386:                                              ; preds = %385, %373
  call void @llvm.lifetime.end.p0(i64 4, ptr %74) #10
  call void @llvm.lifetime.end.p0(i64 12, ptr %73) #10
  call void @llvm.lifetime.end.p0(i64 12, ptr %72) #10
  br label %401

387:                                              ; preds = %329
  %388 = landingpad { ptr, i32 }
          cleanup
  %389 = extractvalue { ptr, i32 } %388, 0
  store ptr %389, ptr %19, align 8
  %390 = extractvalue { ptr, i32 } %388, 1
  store i32 %390, ptr %20, align 4
  br label %395

391:                                              ; preds = %343, %335
  %392 = landingpad { ptr, i32 }
          cleanup
  %393 = extractvalue { ptr, i32 } %392, 0
  store ptr %393, ptr %19, align 8
  %394 = extractvalue { ptr, i32 } %392, 1
  store i32 %394, ptr %20, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %81) #10
  br label %395

395:                                              ; preds = %391, %387
  call void @llvm.lifetime.end.p0(i64 4, ptr %80) #10
  br label %400

396:                                              ; preds = %352, %349, %346
  %397 = landingpad { ptr, i32 }
          cleanup
  %398 = extractvalue { ptr, i32 } %397, 0
  store ptr %398, ptr %19, align 8
  %399 = extractvalue { ptr, i32 } %397, 1
  store i32 %399, ptr %20, align 4
  br label %400

400:                                              ; preds = %396, %395
  call void @llvm.lifetime.end.p0(i64 8, ptr %79) #10
  br label %401

401:                                              ; preds = %400, %386
  call void @llvm.lifetime.end.p0(i64 12, ptr %71) #10
  br label %402

402:                                              ; preds = %401, %372
  call void @llvm.lifetime.end.p0(i64 12, ptr %63) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %62) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %61) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %60) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %59) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %57) #10
  br label %572

403:                                              ; preds = %276
  br label %404

404:                                              ; preds = %403
  %405 = load i64, ptr %57, align 8, !tbaa !15
  %406 = add i64 %405, 1
  store i64 %406, ptr %57, align 8, !tbaa !15
  br label %260, !llvm.loop !19

407:                                              ; preds = %265
  call void @llvm.lifetime.start.p0(i64 24, ptr %82) #10
  %408 = load i32, ptr %15, align 4, !tbaa !13
  %409 = sext i32 %408 to i64
  %410 = load i32, ptr %16, align 4, !tbaa !13
  %411 = sext i32 %410 to i64
  invoke void @_ZN3cgpL17connectivity_gridEmm(ptr dead_on_unwind writable sret(%"struct.cgp::numarray.6") align 8 %82, i64 noundef %409, i64 noundef %411)
          to label %412 unwind label %424

412:                                              ; preds = %407
  %413 = getelementptr inbounds %"struct.cgp::mesh", ptr %0, i32 0, i32 4
  %414 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN3cgp8numarrayINS_14numarray_stackIjLi3EEEEaSEOS3_(ptr noundef nonnull align 8 dereferenceable(24) %413, ptr noundef nonnull align 8 dereferenceable(24) %82) #10
  call void @_ZN3cgp8numarrayINS_14numarray_stackIjLi3EEEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %82) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr %82) #10
  %415 = invoke noundef nonnull align 8 dereferenceable(120) ptr @_ZN3cgp4mesh17flip_connectivityEv(ptr noundef nonnull align 8 dereferenceable(120) %0)
          to label %416 unwind label %428

416:                                              ; preds = %412
  call void @llvm.lifetime.start.p0(i64 8, ptr %83) #10
  store i64 0, ptr %83, align 8, !tbaa !15
  br label %417

417:                                              ; preds = %471, %416
  %418 = load i64, ptr %83, align 8, !tbaa !15
  %419 = load i32, ptr %15, align 4, !tbaa !13
  %420 = sub nsw i32 %419, 1
  %421 = sext i32 %420 to i64
  %422 = icmp ult i64 %418, %421
  br i1 %422, label %432, label %423

423:                                              ; preds = %417
  store i32 8, ptr %58, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %83) #10
  br label %503

424:                                              ; preds = %407
  %425 = landingpad { ptr, i32 }
          cleanup
  %426 = extractvalue { ptr, i32 } %425, 0
  store ptr %426, ptr %19, align 8
  %427 = extractvalue { ptr, i32 } %425, 1
  store i32 %427, ptr %20, align 4
  call void @llvm.lifetime.end.p0(i64 24, ptr %82) #10
  br label %572

428:                                              ; preds = %568, %412
  %429 = landingpad { ptr, i32 }
          cleanup
  %430 = extractvalue { ptr, i32 } %429, 0
  store ptr %430, ptr %19, align 8
  %431 = extractvalue { ptr, i32 } %429, 1
  store i32 %431, ptr %20, align 4
  br label %572

432:                                              ; preds = %417
  call void @llvm.lifetime.start.p0(i64 4, ptr %84) #10
  %433 = load i64, ptr %83, align 8, !tbaa !15
  %434 = uitofp i64 %433 to float
  %435 = load i32, ptr %15, align 4, !tbaa !13
  %436 = sitofp i32 %435 to float
  %437 = fsub float %436, 1.000000e+00
  %438 = fdiv float %434, %437
  store float %438, ptr %84, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 12, ptr %85) #10
  call void @llvm.lifetime.start.p0(i64 12, ptr %86) #10
  call void @llvm.lifetime.start.p0(i64 12, ptr %87) #10
  call void @llvm.lifetime.start.p0(i64 4, ptr %88) #10
  store i32 0, ptr %88, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %89) #10
  store i32 0, ptr %89, align 4, !tbaa !13
  invoke void @_ZN3cgp14numarray_stackIfLi3EEC2IiifEERKT_RKT0_RKT1_(ptr noundef nonnull align 4 dereferenceable(12) %87, ptr noundef nonnull align 4 dereferenceable(4) %88, ptr noundef nonnull align 4 dereferenceable(4) %89, ptr noundef nonnull align 4 dereferenceable(4) %11)
          to label %439 unwind label %474

439:                                              ; preds = %432
  %440 = invoke { <2 x float>, float } @_ZN3cgpmlERKNS_18rotation_transformERKNS_14numarray_stackIfLi3EEE(ptr noundef nonnull align 4 dereferenceable(16) %52, ptr noundef nonnull align 4 dereferenceable(12) %87)
          to label %441 unwind label %474

441:                                              ; preds = %439
  store { <2 x float>, float } %440, ptr %90, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %86, ptr align 8 %90, i64 12, i1 false)
  %442 = load ptr, ptr %12, align 8, !tbaa !9
  %443 = invoke { <2 x float>, float } @_ZN3cgpplERKNS_14numarray_stackIfLi3EEES3_(ptr noundef nonnull align 4 dereferenceable(12) %86, ptr noundef nonnull align 4 dereferenceable(12) %442)
          to label %444 unwind label %474

444:                                              ; preds = %441
  store { <2 x float>, float } %443, ptr %91, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %85, ptr align 8 %91, i64 12, i1 false)
  call void @llvm.lifetime.end.p0(i64 4, ptr %89) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %88) #10
  call void @llvm.lifetime.end.p0(i64 12, ptr %87) #10
  call void @llvm.lifetime.end.p0(i64 12, ptr %86) #10
  call void @llvm.lifetime.start.p0(i64 12, ptr %92) #10
  call void @llvm.lifetime.start.p0(i64 12, ptr %93) #10
  call void @llvm.lifetime.start.p0(i64 12, ptr %94) #10
  call void @llvm.lifetime.start.p0(i64 4, ptr %95) #10
  %445 = load float, ptr %84, align 4, !tbaa !5
  %446 = fmul float 0x401921FA00000000, %445
  %447 = invoke noundef float @_ZSt3cosf(float noundef %446)
          to label %448 unwind label %478

448:                                              ; preds = %444
  store float %447, ptr %95, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %96) #10
  %449 = load float, ptr %84, align 4, !tbaa !5
  %450 = fmul float 0x401921FA00000000, %449
  %451 = invoke noundef float @_ZSt3sinf(float noundef %450)
          to label %452 unwind label %482

452:                                              ; preds = %448
  store float %451, ptr %96, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %97) #10
  %453 = load float, ptr %10, align 4, !tbaa !5
  %454 = load float, ptr %11, align 4, !tbaa !5
  %455 = fdiv float %453, %454
  store float %455, ptr %97, align 4, !tbaa !5
  invoke void @_ZN3cgp14numarray_stackIfLi3EEC2ERKfS3_S3_(ptr noundef nonnull align 4 dereferenceable(12) %94, ptr noundef nonnull align 4 dereferenceable(4) %95, ptr noundef nonnull align 4 dereferenceable(4) %96, ptr noundef nonnull align 4 dereferenceable(4) %97)
          to label %456 unwind label %486

456:                                              ; preds = %452
  %457 = invoke { <2 x float>, float } @_ZN3cgp9normalizeIfLi3EEENS_14numarray_stackIT_XT0_EEERKS3_(ptr noundef nonnull align 4 dereferenceable(12) %94)
          to label %458 unwind label %486

458:                                              ; preds = %456
  store { <2 x float>, float } %457, ptr %98, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %93, ptr align 8 %98, i64 12, i1 false)
  %459 = invoke { <2 x float>, float } @_ZN3cgpmlERKNS_18rotation_transformERKNS_14numarray_stackIfLi3EEE(ptr noundef nonnull align 4 dereferenceable(16) %52, ptr noundef nonnull align 4 dereferenceable(12) %93)
          to label %460 unwind label %486

460:                                              ; preds = %458
  store { <2 x float>, float } %459, ptr %99, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %92, ptr align 8 %99, i64 12, i1 false)
  call void @llvm.lifetime.end.p0(i64 4, ptr %97) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %96) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %95) #10
  call void @llvm.lifetime.end.p0(i64 12, ptr %94) #10
  call void @llvm.lifetime.end.p0(i64 12, ptr %93) #10
  call void @llvm.lifetime.start.p0(i64 8, ptr %100) #10
  call void @llvm.lifetime.start.p0(i64 4, ptr %101) #10
  store float 5.000000e-01, ptr %101, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %102) #10
  store float 5.000000e-01, ptr %102, align 4, !tbaa !5
  invoke void @_ZN3cgp14numarray_stackIfLi2EEC2ERKfS3_(ptr noundef nonnull align 4 dereferenceable(8) %100, ptr noundef nonnull align 4 dereferenceable(4) %101, ptr noundef nonnull align 4 dereferenceable(4) %102)
          to label %461 unwind label %492

461:                                              ; preds = %460
  call void @llvm.lifetime.end.p0(i64 4, ptr %102) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %101) #10
  %462 = getelementptr inbounds %"struct.cgp::mesh", ptr %0, i32 0, i32 0
  %463 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN3cgp8numarrayINS_14numarray_stackIfLi3EEEE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %462, ptr noundef nonnull align 4 dereferenceable(12) %85)
          to label %464 unwind label %496

464:                                              ; preds = %461
  %465 = getelementptr inbounds %"struct.cgp::mesh", ptr %0, i32 0, i32 1
  %466 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN3cgp8numarrayINS_14numarray_stackIfLi3EEEE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %465, ptr noundef nonnull align 4 dereferenceable(12) %92)
          to label %467 unwind label %496

467:                                              ; preds = %464
  %468 = getelementptr inbounds %"struct.cgp::mesh", ptr %0, i32 0, i32 3
  %469 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN3cgp8numarrayINS_14numarray_stackIfLi2EEEE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %468, ptr noundef nonnull align 4 dereferenceable(8) %100)
          to label %470 unwind label %496

470:                                              ; preds = %467
  call void @llvm.lifetime.end.p0(i64 8, ptr %100) #10
  call void @llvm.lifetime.end.p0(i64 12, ptr %92) #10
  call void @llvm.lifetime.end.p0(i64 12, ptr %85) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %84) #10
  br label %471

471:                                              ; preds = %470
  %472 = load i64, ptr %83, align 8, !tbaa !15
  %473 = add i64 %472, 1
  store i64 %473, ptr %83, align 8, !tbaa !15
  br label %417, !llvm.loop !20

474:                                              ; preds = %441, %439, %432
  %475 = landingpad { ptr, i32 }
          cleanup
  %476 = extractvalue { ptr, i32 } %475, 0
  store ptr %476, ptr %19, align 8
  %477 = extractvalue { ptr, i32 } %475, 1
  store i32 %477, ptr %20, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %89) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %88) #10
  call void @llvm.lifetime.end.p0(i64 12, ptr %87) #10
  call void @llvm.lifetime.end.p0(i64 12, ptr %86) #10
  br label %502

478:                                              ; preds = %444
  %479 = landingpad { ptr, i32 }
          cleanup
  %480 = extractvalue { ptr, i32 } %479, 0
  store ptr %480, ptr %19, align 8
  %481 = extractvalue { ptr, i32 } %479, 1
  store i32 %481, ptr %20, align 4
  br label %491

482:                                              ; preds = %448
  %483 = landingpad { ptr, i32 }
          cleanup
  %484 = extractvalue { ptr, i32 } %483, 0
  store ptr %484, ptr %19, align 8
  %485 = extractvalue { ptr, i32 } %483, 1
  store i32 %485, ptr %20, align 4
  br label %490

486:                                              ; preds = %458, %456, %452
  %487 = landingpad { ptr, i32 }
          cleanup
  %488 = extractvalue { ptr, i32 } %487, 0
  store ptr %488, ptr %19, align 8
  %489 = extractvalue { ptr, i32 } %487, 1
  store i32 %489, ptr %20, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %97) #10
  br label %490

490:                                              ; preds = %486, %482
  call void @llvm.lifetime.end.p0(i64 4, ptr %96) #10
  br label %491

491:                                              ; preds = %490, %478
  call void @llvm.lifetime.end.p0(i64 4, ptr %95) #10
  call void @llvm.lifetime.end.p0(i64 12, ptr %94) #10
  call void @llvm.lifetime.end.p0(i64 12, ptr %93) #10
  br label %501

492:                                              ; preds = %460
  %493 = landingpad { ptr, i32 }
          cleanup
  %494 = extractvalue { ptr, i32 } %493, 0
  store ptr %494, ptr %19, align 8
  %495 = extractvalue { ptr, i32 } %493, 1
  store i32 %495, ptr %20, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %102) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %101) #10
  br label %500

496:                                              ; preds = %467, %464, %461
  %497 = landingpad { ptr, i32 }
          cleanup
  %498 = extractvalue { ptr, i32 } %497, 0
  store ptr %498, ptr %19, align 8
  %499 = extractvalue { ptr, i32 } %497, 1
  store i32 %499, ptr %20, align 4
  br label %500

500:                                              ; preds = %496, %492
  call void @llvm.lifetime.end.p0(i64 8, ptr %100) #10
  br label %501

501:                                              ; preds = %500, %491
  call void @llvm.lifetime.end.p0(i64 12, ptr %92) #10
  br label %502

502:                                              ; preds = %501, %474
  call void @llvm.lifetime.end.p0(i64 12, ptr %85) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %84) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %83) #10
  br label %572

503:                                              ; preds = %423
  call void @llvm.lifetime.start.p0(i64 8, ptr %103) #10
  store i64 0, ptr %103, align 8, !tbaa !15
  br label %504

504:                                              ; preds = %539, %503
  %505 = load i64, ptr %103, align 8, !tbaa !15
  %506 = load i32, ptr %15, align 4, !tbaa !13
  %507 = sub nsw i32 %506, 1
  %508 = sext i32 %507 to i64
  %509 = icmp ult i64 %505, %508
  br i1 %509, label %511, label %510

510:                                              ; preds = %504
  store i32 11, ptr %58, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %103) #10
  br label %546

511:                                              ; preds = %504
  %512 = getelementptr inbounds %"struct.cgp::mesh", ptr %0, i32 0, i32 4
  call void @llvm.lifetime.start.p0(i64 12, ptr %104) #10
  call void @llvm.lifetime.start.p0(i64 8, ptr %105) #10
  %513 = load i32, ptr %16, align 4, !tbaa !13
  %514 = sext i32 %513 to i64
  %515 = load i64, ptr %103, align 8, !tbaa !15
  %516 = mul i64 %514, %515
  %517 = load i32, ptr %16, align 4, !tbaa !13
  %518 = sext i32 %517 to i64
  %519 = add i64 %516, %518
  %520 = sub i64 %519, 1
  store i64 %520, ptr %105, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 8, ptr %106) #10
  %521 = load i32, ptr %16, align 4, !tbaa !13
  %522 = sext i32 %521 to i64
  %523 = load i64, ptr %103, align 8, !tbaa !15
  %524 = add i64 %523, 1
  %525 = mul i64 %522, %524
  %526 = load i32, ptr %16, align 4, !tbaa !13
  %527 = sext i32 %526 to i64
  %528 = add i64 %525, %527
  %529 = sub i64 %528, 1
  store i64 %529, ptr %106, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 8, ptr %107) #10
  %530 = load i32, ptr %15, align 4, !tbaa !13
  %531 = load i32, ptr %16, align 4, !tbaa !13
  %532 = mul nsw i32 %530, %531
  %533 = sext i32 %532 to i64
  %534 = load i64, ptr %103, align 8, !tbaa !15
  %535 = add i64 %533, %534
  store i64 %535, ptr %107, align 8, !tbaa !15
  invoke void @_ZN3cgp14numarray_stackIjLi3EEC2ImmmEERKT_RKT0_RKT1_(ptr noundef nonnull align 4 dereferenceable(12) %104, ptr noundef nonnull align 8 dereferenceable(8) %105, ptr noundef nonnull align 8 dereferenceable(8) %106, ptr noundef nonnull align 8 dereferenceable(8) %107)
          to label %536 unwind label %542

536:                                              ; preds = %511
  %537 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN3cgp8numarrayINS_14numarray_stackIjLi3EEEE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %512, ptr noundef nonnull align 4 dereferenceable(12) %104)
          to label %538 unwind label %542

538:                                              ; preds = %536
  call void @llvm.lifetime.end.p0(i64 8, ptr %107) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %106) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %105) #10
  call void @llvm.lifetime.end.p0(i64 12, ptr %104) #10
  br label %539

539:                                              ; preds = %538
  %540 = load i64, ptr %103, align 8, !tbaa !15
  %541 = add i64 %540, 1
  store i64 %541, ptr %103, align 8, !tbaa !15
  br label %504, !llvm.loop !21

542:                                              ; preds = %536, %511
  %543 = landingpad { ptr, i32 }
          cleanup
  %544 = extractvalue { ptr, i32 } %543, 0
  store ptr %544, ptr %19, align 8
  %545 = extractvalue { ptr, i32 } %543, 1
  store i32 %545, ptr %20, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %107) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %106) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %105) #10
  call void @llvm.lifetime.end.p0(i64 12, ptr %104) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %103) #10
  br label %572

546:                                              ; preds = %510
  %547 = load i8, ptr %14, align 1, !tbaa !11, !range !22, !noundef !23
  %548 = trunc i8 %547 to i1
  br i1 %548, label %549, label %568

549:                                              ; preds = %546
  call void @llvm.lifetime.start.p0(i64 120, ptr %108) #10
  %550 = load float, ptr %10, align 4, !tbaa !5
  %551 = load ptr, ptr %12, align 8, !tbaa !9
  %552 = load ptr, ptr %13, align 8, !tbaa !9
  %553 = load i32, ptr %15, align 4, !tbaa !13
  invoke void @_ZN3cgp19mesh_primitive_discEfRKNS_14numarray_stackIfLi3EEES3_i(ptr dead_on_unwind writable sret(%"struct.cgp::mesh") align 8 %108, float noundef %550, ptr noundef nonnull align 4 dereferenceable(12) %551, ptr noundef nonnull align 4 dereferenceable(12) %552, i32 noundef %553)
          to label %554 unwind label %559

554:                                              ; preds = %549
  %555 = invoke noundef nonnull align 8 dereferenceable(120) ptr @_ZN3cgp4mesh17flip_connectivityEv(ptr noundef nonnull align 8 dereferenceable(120) %108)
          to label %556 unwind label %563

556:                                              ; preds = %554
  %557 = invoke noundef nonnull align 8 dereferenceable(120) ptr @_ZN3cgp4mesh9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(120) %0, ptr noundef nonnull align 8 dereferenceable(120) %555)
          to label %558 unwind label %563

558:                                              ; preds = %556
  call void @_ZN3cgp4meshD2Ev(ptr noundef nonnull align 8 dereferenceable(120) %108) #10
  call void @llvm.lifetime.end.p0(i64 120, ptr %108) #10
  br label %568

559:                                              ; preds = %549
  %560 = landingpad { ptr, i32 }
          cleanup
  %561 = extractvalue { ptr, i32 } %560, 0
  store ptr %561, ptr %19, align 8
  %562 = extractvalue { ptr, i32 } %560, 1
  store i32 %562, ptr %20, align 4
  br label %567

563:                                              ; preds = %556, %554
  %564 = landingpad { ptr, i32 }
          cleanup
  %565 = extractvalue { ptr, i32 } %564, 0
  store ptr %565, ptr %19, align 8
  %566 = extractvalue { ptr, i32 } %564, 1
  store i32 %566, ptr %20, align 4
  call void @_ZN3cgp4meshD2Ev(ptr noundef nonnull align 8 dereferenceable(120) %108) #10
  br label %567

567:                                              ; preds = %563, %559
  call void @llvm.lifetime.end.p0(i64 120, ptr %108) #10
  br label %572

568:                                              ; preds = %558, %546
  %569 = invoke noundef nonnull align 8 dereferenceable(120) ptr @_ZN3cgp4mesh16fill_empty_fieldEv(ptr noundef nonnull align 8 dereferenceable(120) %0)
          to label %570 unwind label %428

570:                                              ; preds = %568
  store i1 true, ptr %51, align 1
  store i32 1, ptr %58, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %52) #10
  %571 = load i1, ptr %51, align 1
  br i1 %571, label %574, label %573

572:                                              ; preds = %567, %542, %502, %428, %424, %402, %266
  call void @llvm.lifetime.end.p0(i64 16, ptr %52) #10
  call void @_ZN3cgp4meshD2Ev(ptr noundef nonnull align 8 dereferenceable(120) %0) #10
  br label %575

573:                                              ; preds = %570
  call void @_ZN3cgp4meshD2Ev(ptr noundef nonnull align 8 dereferenceable(120) %0) #10
  br label %574

574:                                              ; preds = %573, %570
  ret void

575:                                              ; preds = %572, %248, %213, %178, %143
  %576 = load ptr, ptr %19, align 8
  %577 = load i32, ptr %20, align 4
  %578 = insertvalue { ptr, i32 } poison, ptr %576, 0
  %579 = insertvalue { ptr, i32 } %578, i32 %577, 1
  resume { ptr, i32 } %579
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #3 align 2

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

!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 = !{!"bool", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"int", !7, i64 0}
!15 = !{!16, !16, i64 0}
!16 = !{!"long", !7, i64 0}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
!19 = distinct !{!19, !18}
!20 = distinct !{!20, !18}
!21 = distinct !{!21, !18}
!22 = !{i8 0, i8 2}
!23 = !{}


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

%"struct.cgp::numarray.6" = type { %"class.std::vector.7" }
%"class.std::vector.7" = type { %"struct.std::_Vector_base.8" }
%"struct.std::_Vector_base.8" = type { %"struct.std::_Vector_base<cgp::numarray_stack<unsigned int, 3>, std::allocator<cgp::numarray_stack<unsigned int, 3>>>::_Vector_impl" }
%"struct.std::_Vector_base<cgp::numarray_stack<unsigned int, 3>, std::allocator<cgp::numarray_stack<unsigned int, 3>>>::_Vector_impl" = type { %"struct.std::_Vector_base<cgp::numarray_stack<unsigned int, 3>, std::allocator<cgp::numarray_stack<unsigned int, 3>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<cgp::numarray_stack<unsigned int, 3>, std::allocator<cgp::numarray_stack<unsigned int, 3>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.cgp::mesh" = type { %"struct.cgp::numarray", %"struct.cgp::numarray", %"struct.cgp::numarray", %"struct.cgp::numarray.0", %"struct.cgp::numarray.6" }
%"struct.cgp::numarray" = type { %"class.std::vector" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<cgp::numarray_stack<float, 3>, std::allocator<cgp::numarray_stack<float, 3>>>::_Vector_impl" }
%"struct.std::_Vector_base<cgp::numarray_stack<float, 3>, std::allocator<cgp::numarray_stack<float, 3>>>::_Vector_impl" = type { %"struct.std::_Vector_base<cgp::numarray_stack<float, 3>, std::allocator<cgp::numarray_stack<float, 3>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<cgp::numarray_stack<float, 3>, std::allocator<cgp::numarray_stack<float, 3>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.cgp::numarray.0" = type { %"class.std::vector.1" }
%"class.std::vector.1" = type { %"struct.std::_Vector_base.2" }
%"struct.std::_Vector_base.2" = type { %"struct.std::_Vector_base<cgp::numarray_stack<float, 2>, std::allocator<cgp::numarray_stack<float, 2>>>::_Vector_impl" }
%"struct.std::_Vector_base<cgp::numarray_stack<float, 2>, std::allocator<cgp::numarray_stack<float, 2>>>::_Vector_impl" = type { %"struct.std::_Vector_base<cgp::numarray_stack<float, 2>, std::allocator<cgp::numarray_stack<float, 2>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<cgp::numarray_stack<float, 2>, std::allocator<cgp::numarray_stack<float, 2>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::allocator.12" = type { i8 }
%"struct.cgp::rotation_transform" = type { %"struct.cgp::quaternion" }
%"struct.cgp::quaternion" = type { %"struct.cgp::numarray_stack.15" }
%"struct.cgp::numarray_stack.15" = type { float, float, float, float }
%"struct.cgp::numarray_stack" = type { float, float, float }
%"struct.cgp::numarray_stack.16" = type { float, float }
%"struct.cgp::numarray_stack.19" = type { i32, i32, i32 }

@.str.2 = external hidden unnamed_addr constant [89 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [23 x i8], align 1
@__func__._ZN3cgp19mesh_primitive_coneEffRKNS_14numarray_stackIfLi3EEES3_bii = external hidden unnamed_addr constant [20 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [24 x i8], align 1

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

; Function Attrs: noreturn
declare void @_ZN3cgp10call_errorERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES7_S7_S7_i(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32), i32 noundef) local_unnamed_addr #1

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #3 align 2

declare i32 @__gxx_personality_v0(...)

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3cgp14numarray_stackIfLi3EEC2IiiiEERKT_RKT0_RKT1_(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) unnamed_addr #2 align 2

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3cgp14numarray_stackIfLi3EEC2ERKfS3_S3_(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) unnamed_addr #2 align 2

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN3cgpL17connectivity_gridEmm(ptr dead_on_unwind noalias writable sret(%"struct.cgp::numarray.6") align 8, i64 noundef, i64 noundef) local_unnamed_addr #3

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

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

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

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

declare noundef nonnull align 8 dereferenceable(120) ptr @_ZN3cgp4mesh17flip_connectivityEv(ptr noundef nonnull align 8 dereferenceable(120)) local_unnamed_addr #4

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

declare noundef nonnull align 8 dereferenceable(120) ptr @_ZN3cgp4mesh16fill_empty_fieldEv(ptr noundef nonnull align 8 dereferenceable(120)) local_unnamed_addr #4

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

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #8

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3cgp14numarray_stackIfLi3EEC2IiifEERKT_RKT0_RKT1_(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3cgp14numarray_stackIjLi3EEC2ImmmEERKT_RKT0_RKT1_(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3cgp19mesh_primitive_coneEffRKNS_14numarray_stackIfLi3EEES3_bii(ptr dead_on_unwind noalias writable sret(%"struct.cgp::mesh") align 8 %0, float noundef %1, float noundef %2, ptr noundef nonnull align 4 dereferenceable(12) %3, ptr noundef nonnull align 4 dereferenceable(12) %4, i1 noundef zeroext %5, i32 noundef %6, i32 noundef %7) local_unnamed_addr #7 personality ptr @__gxx_personality_v0 {
  %9 = alloca float, align 4
  %10 = alloca %"class.std::__cxx11::basic_string", align 8
  %11 = alloca %"class.std::allocator.12", align 1
  %12 = alloca %"class.std::__cxx11::basic_string", align 8
  %13 = alloca %"class.std::allocator.12", align 1
  %14 = alloca %"class.std::__cxx11::basic_string", align 8
  %15 = alloca %"class.std::allocator.12", align 1
  %16 = alloca %"class.std::__cxx11::basic_string", align 8
  %17 = alloca %"class.std::allocator.12", align 1
  %18 = alloca %"class.std::__cxx11::basic_string", align 8
  %19 = alloca %"class.std::allocator.12", align 1
  %20 = alloca %"class.std::__cxx11::basic_string", align 8
  %21 = alloca %"class.std::allocator.12", align 1
  %22 = alloca %"class.std::__cxx11::basic_string", align 8
  %23 = alloca %"class.std::allocator.12", align 1
  %24 = alloca %"class.std::__cxx11::basic_string", align 8
  %25 = alloca %"class.std::allocator.12", align 1
  %26 = alloca %"class.std::__cxx11::basic_string", align 8
  %27 = alloca %"class.std::allocator.12", align 1
  %28 = alloca %"class.std::__cxx11::basic_string", align 8
  %29 = alloca %"class.std::allocator.12", align 1
  %30 = alloca %"class.std::__cxx11::basic_string", align 8
  %31 = alloca %"class.std::allocator.12", align 1
  %32 = alloca %"class.std::__cxx11::basic_string", align 8
  %33 = alloca %"class.std::allocator.12", align 1
  %34 = alloca %"class.std::__cxx11::basic_string", align 8
  %35 = alloca %"class.std::allocator.12", align 1
  %36 = alloca %"class.std::__cxx11::basic_string", align 8
  %37 = alloca %"class.std::allocator.12", align 1
  %38 = alloca %"class.std::__cxx11::basic_string", align 8
  %39 = alloca %"class.std::allocator.12", align 1
  %40 = alloca %"class.std::__cxx11::basic_string", align 8
  %41 = alloca %"class.std::allocator.12", align 1
  %42 = alloca %"struct.cgp::rotation_transform", align 8
  %43 = alloca %"struct.cgp::numarray_stack", align 4
  %44 = alloca i32, align 4
  %45 = alloca i32, align 4
  %46 = alloca i32, align 4
  %47 = alloca %"struct.cgp::numarray_stack", align 8
  %48 = alloca %"struct.cgp::numarray_stack", align 8
  %49 = alloca %"struct.cgp::numarray_stack", align 4
  %50 = alloca float, align 4
  %51 = alloca float, align 4
  %52 = alloca float, align 4
  %53 = alloca %"struct.cgp::numarray_stack", align 8
  %54 = alloca %"struct.cgp::numarray_stack", align 8
  %55 = alloca %"struct.cgp::numarray_stack", align 4
  %56 = alloca float, align 4
  %57 = alloca float, align 4
  %58 = alloca float, align 4
  %59 = alloca %"struct.cgp::numarray_stack.16", align 4
  %60 = alloca float, align 4
  %61 = alloca float, align 4
  %62 = alloca %"struct.cgp::numarray.6", align 8
  %63 = alloca %"struct.cgp::numarray_stack", align 8
  %64 = alloca %"struct.cgp::numarray_stack", align 8
  %65 = alloca %"struct.cgp::numarray_stack", align 4
  %66 = alloca i32, align 4
  %67 = alloca i32, align 4
  %68 = alloca %"struct.cgp::numarray_stack", align 8
  %69 = alloca %"struct.cgp::numarray_stack", align 8
  %70 = alloca %"struct.cgp::numarray_stack", align 4
  %71 = alloca float, align 4
  %72 = alloca float, align 4
  %73 = alloca float, align 4
  %74 = alloca %"struct.cgp::numarray_stack.16", align 4
  %75 = alloca float, align 4
  %76 = alloca float, align 4
  %77 = alloca %"struct.cgp::numarray_stack.19", align 4
  %78 = alloca i64, align 8
  %79 = alloca i64, align 8
  %80 = alloca i64, align 8
  %81 = alloca %"struct.cgp::mesh", align 8
  store float %2, ptr %9, align 4, !tbaa !5
  %82 = fcmp ule float %1, 0.000000e+00
  br i1 %82, label %83, label %103

83:                                               ; preds = %8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %10) #9
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %11) #9
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %11) #9
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %10, ptr noundef nonnull @.str.3, ptr noundef nonnull align 1 dereferenceable(1) %11)
          to label %84 unwind label %89

84:                                               ; preds = %83
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %12) #9
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %13) #9
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %13) #9
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %12, ptr noundef nonnull @.str.23, ptr noundef nonnull align 1 dereferenceable(1) %13)
          to label %85 unwind label %91

85:                                               ; preds = %84
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %14) #9
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %15) #9
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %15) #9
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %14, ptr noundef nonnull @.str.2, ptr noundef nonnull align 1 dereferenceable(1) %15)
          to label %86 unwind label %93

86:                                               ; preds = %85
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %16) #9
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %17) #9
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %17) #9
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %16, ptr noundef nonnull @__func__._ZN3cgp19mesh_primitive_coneEffRKNS_14numarray_stackIfLi3EEES3_bii, ptr noundef nonnull align 1 dereferenceable(1) %17)
          to label %87 unwind label %95

87:                                               ; preds = %86
  invoke void @_ZN3cgp10call_errorERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES7_S7_S7_i(ptr noundef nonnull align 8 dereferenceable(32) %10, ptr noundef nonnull align 8 dereferenceable(32) %12, ptr noundef nonnull align 8 dereferenceable(32) %14, ptr noundef nonnull align 8 dereferenceable(32) %16, i32 noundef 316) #10
          to label %88 unwind label %97

88:                                               ; preds = %87
  unreachable

89:                                               ; preds = %83
  %90 = landingpad { ptr, i32 }
          cleanup
  br label %102

91:                                               ; preds = %84
  %92 = landingpad { ptr, i32 }
          cleanup
  br label %101

93:                                               ; preds = %85
  %94 = landingpad { ptr, i32 }
          cleanup
  br label %100

95:                                               ; preds = %86
  %96 = landingpad { ptr, i32 }
          cleanup
  br label %99

97:                                               ; preds = %87
  %98 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %16) #9
  br label %99

99:                                               ; preds = %97, %95
  %.pn139 = phi { ptr, i32 } [ %98, %97 ], [ %96, %95 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %17) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %17) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %16) #9
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #9
  br label %100

100:                                              ; preds = %99, %93
  %.pn139.pn = phi { ptr, i32 } [ %.pn139, %99 ], [ %94, %93 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %15) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %15) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %14) #9
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #9
  br label %101

101:                                              ; preds = %100, %91
  %.pn139.pn.pn = phi { ptr, i32 } [ %.pn139.pn, %100 ], [ %92, %91 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %13) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %13) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %12) #9
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #9
  br label %102

102:                                              ; preds = %101, %89
  %.pn139.pn.pn.pn = phi { ptr, i32 } [ %.pn139.pn.pn, %101 ], [ %90, %89 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %11) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %11) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %10) #9
  br label %304

103:                                              ; preds = %8
  %104 = fcmp ule float %2, 0.000000e+00
  br i1 %104, label %105, label %125

105:                                              ; preds = %103
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %18) #9
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %19) #9
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %19) #9
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %18, ptr noundef nonnull @.str.24, ptr noundef nonnull align 1 dereferenceable(1) %19)
          to label %106 unwind label %111

106:                                              ; preds = %105
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %20) #9
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %21) #9
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %21) #9
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %20, ptr noundef nonnull @.str.25, ptr noundef nonnull align 1 dereferenceable(1) %21)
          to label %107 unwind label %113

107:                                              ; preds = %106
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %22) #9
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %23) #9
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %23) #9
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %22, ptr noundef nonnull @.str.2, ptr noundef nonnull align 1 dereferenceable(1) %23)
          to label %108 unwind label %115

108:                                              ; preds = %107
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %24) #9
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %25) #9
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %25) #9
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %24, ptr noundef nonnull @__func__._ZN3cgp19mesh_primitive_coneEffRKNS_14numarray_stackIfLi3EEES3_bii, ptr noundef nonnull align 1 dereferenceable(1) %25)
          to label %109 unwind label %117

109:                                              ; preds = %108
  invoke void @_ZN3cgp10call_errorERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES7_S7_S7_i(ptr noundef nonnull align 8 dereferenceable(32) %18, ptr noundef nonnull align 8 dereferenceable(32) %20, ptr noundef nonnull align 8 dereferenceable(32) %22, ptr noundef nonnull align 8 dereferenceable(32) %24, i32 noundef 317) #10
          to label %110 unwind label %119

110:                                              ; preds = %109
  unreachable

111:                                              ; preds = %105
  %112 = landingpad { ptr, i32 }
          cleanup
  br label %124

113:                                              ; preds = %106
  %114 = landingpad { ptr, i32 }
          cleanup
  br label %123

115:                                              ; preds = %107
  %116 = landingpad { ptr, i32 }
          cleanup
  br label %122

117:                                              ; preds = %108
  %118 = landingpad { ptr, i32 }
          cleanup
  br label %121

119:                                              ; preds = %109
  %120 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %24) #9
  br label %121

121:                                              ; preds = %119, %117
  %.pn134 = phi { ptr, i32 } [ %120, %119 ], [ %118, %117 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %25) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %25) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %24) #9
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %22) #9
  br label %122

122:                                              ; preds = %121, %115
  %.pn134.pn = phi { ptr, i32 } [ %.pn134, %121 ], [ %116, %115 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %23) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %23) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %22) #9
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %20) #9
  br label %123

123:                                              ; preds = %122, %113
  %.pn134.pn.pn = phi { ptr, i32 } [ %.pn134.pn, %122 ], [ %114, %113 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %21) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %21) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %20) #9
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %18) #9
  br label %124

124:                                              ; preds = %123, %111
  %.pn134.pn.pn.pn = phi { ptr, i32 } [ %.pn134.pn.pn, %123 ], [ %112, %111 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %19) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %19) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %18) #9
  br label %304

125:                                              ; preds = %103
  %126 = icmp slt i32 %6, 3
  br i1 %126, label %127, label %147

127:                                              ; preds = %125
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %26) #9
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %27) #9
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %27) #9
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %26, ptr noundef nonnull @.str.20, ptr noundef nonnull align 1 dereferenceable(1) %27)
          to label %128 unwind label %133

128:                                              ; preds = %127
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %28) #9
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %29) #9
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %29) #9
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %28, ptr noundef nonnull @.str.26, ptr noundef nonnull align 1 dereferenceable(1) %29)
          to label %129 unwind label %135

129:                                              ; preds = %128
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %30) #9
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %31) #9
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %31) #9
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %30, ptr noundef nonnull @.str.2, ptr noundef nonnull align 1 dereferenceable(1) %31)
          to label %130 unwind label %137

130:                                              ; preds = %129
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %32) #9
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %33) #9
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %33) #9
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %32, ptr noundef nonnull @__func__._ZN3cgp19mesh_primitive_coneEffRKNS_14numarray_stackIfLi3EEES3_bii, ptr noundef nonnull align 1 dereferenceable(1) %33)
          to label %131 unwind label %139

131:                                              ; preds = %130
  invoke void @_ZN3cgp10call_errorERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES7_S7_S7_i(ptr noundef nonnull align 8 dereferenceable(32) %26, ptr noundef nonnull align 8 dereferenceable(32) %28, ptr noundef nonnull align 8 dereferenceable(32) %30, ptr noundef nonnull align 8 dereferenceable(32) %32, i32 noundef 318) #10
          to label %132 unwind label %141

132:                                              ; preds = %131
  unreachable

133:                                              ; preds = %127
  %134 = landingpad { ptr, i32 }
          cleanup
  br label %146

135:                                              ; preds = %128
  %136 = landingpad { ptr, i32 }
          cleanup
  br label %145

137:                                              ; preds = %129
  %138 = landingpad { ptr, i32 }
          cleanup
  br label %144

139:                                              ; preds = %130
  %140 = landingpad { ptr, i32 }
          cleanup
  br label %143

141:                                              ; preds = %131
  %142 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %32) #9
  br label %143

143:                                              ; preds = %141, %139
  %.pn129 = phi { ptr, i32 } [ %142, %141 ], [ %140, %139 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %33) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %33) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %32) #9
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %30) #9
  br label %144

144:                                              ; preds = %143, %137
  %.pn129.pn = phi { ptr, i32 } [ %.pn129, %143 ], [ %138, %137 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %31) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %31) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %30) #9
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %28) #9
  br label %145

145:                                              ; preds = %144, %135
  %.pn129.pn.pn = phi { ptr, i32 } [ %.pn129.pn, %144 ], [ %136, %135 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %29) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %29) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %28) #9
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %26) #9
  br label %146

146:                                              ; preds = %145, %133
  %.pn129.pn.pn.pn = phi { ptr, i32 } [ %.pn129.pn.pn, %145 ], [ %134, %133 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %27) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %27) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %26) #9
  br label %304

147:                                              ; preds = %125
  %148 = icmp slt i32 %7, 2
  br i1 %148, label %149, label %169

149:                                              ; preds = %147
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %34) #9
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %35) #9
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %35) #9
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %34, ptr noundef nonnull @.str.16, ptr noundef nonnull align 1 dereferenceable(1) %35)
          to label %150 unwind label %155

150:                                              ; preds = %149
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %36) #9
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %37) #9
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %37) #9
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %36, ptr noundef nonnull @.str.27, ptr noundef nonnull align 1 dereferenceable(1) %37)
          to label %151 unwind label %157

151:                                              ; preds = %150
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %38) #9
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %39) #9
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %39) #9
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %38, ptr noundef nonnull @.str.2, ptr noundef nonnull align 1 dereferenceable(1) %39)
          to label %152 unwind label %159

152:                                              ; preds = %151
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %40) #9
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %41) #9
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %41) #9
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %40, ptr noundef nonnull @__func__._ZN3cgp19mesh_primitive_coneEffRKNS_14numarray_stackIfLi3EEES3_bii, ptr noundef nonnull align 1 dereferenceable(1) %41)
          to label %153 unwind label %161

153:                                              ; preds = %152
  invoke void @_ZN3cgp10call_errorERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES7_S7_S7_i(ptr noundef nonnull align 8 dereferenceable(32) %34, ptr noundef nonnull align 8 dereferenceable(32) %36, ptr noundef nonnull align 8 dereferenceable(32) %38, ptr noundef nonnull align 8 dereferenceable(32) %40, i32 noundef 319) #10
          to label %154 unwind label %163

154:                                              ; preds = %153
  unreachable

155:                                              ; preds = %149
  %156 = landingpad { ptr, i32 }
          cleanup
  br label %168

157:                                              ; preds = %150
  %158 = landingpad { ptr, i32 }
          cleanup
  br label %167

159:                                              ; preds = %151
  %160 = landingpad { ptr, i32 }
          cleanup
  br label %166

161:                                              ; preds = %152
  %162 = landingpad { ptr, i32 }
          cleanup
  br label %165

163:                                              ; preds = %153
  %164 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %40) #9
  br label %165

165:                                              ; preds = %163, %161
  %.pn124 = phi { ptr, i32 } [ %164, %163 ], [ %162, %161 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %41) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %41) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %40) #9
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %38) #9
  br label %166

166:                                              ; preds = %165, %159
  %.pn124.pn = phi { ptr, i32 } [ %.pn124, %165 ], [ %160, %159 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %39) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %39) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %38) #9
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %36) #9
  br label %167

167:                                              ; preds = %166, %157
  %.pn124.pn.pn = phi { ptr, i32 } [ %.pn124.pn, %166 ], [ %158, %157 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %37) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %37) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %36) #9
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %34) #9
  br label %168

168:                                              ; preds = %167, %155
  %.pn124.pn.pn.pn = phi { ptr, i32 } [ %.pn124.pn.pn, %167 ], [ %156, %155 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %35) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %35) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %34) #9
  br label %304

169:                                              ; preds = %147
  tail call void @_ZN3cgp4meshC2Ev(ptr noundef nonnull align 8 dereferenceable(120) %0)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %42) #9
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %43) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %44) #9
  store i32 0, ptr %44, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %45) #9
  store i32 0, ptr %45, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %46) #9
  store i32 1, ptr %46, align 4, !tbaa !9
  call void @_ZN3cgp14numarray_stackIfLi3EEC2IiiiEERKT_RKT0_RKT1_(ptr noundef nonnull align 4 dereferenceable(12) %43, ptr noundef nonnull align 4 dereferenceable(4) %44, ptr noundef nonnull align 4 dereferenceable(4) %45, ptr noundef nonnull align 4 dereferenceable(4) %46)
  %170 = invoke { <2 x float>, <2 x float> } @_ZN3cgp18rotation_transform21from_vector_transformERKNS_14numarray_stackIfLi3EEES4_(ptr noundef nonnull align 4 dereferenceable(12) %43, ptr noundef nonnull align 4 dereferenceable(12) %4)
          to label %171 unwind label %186

171:                                              ; preds = %169
  %172 = extractvalue { <2 x float>, <2 x float> } %170, 0
  store <2 x float> %172, ptr %42, align 8
  %173 = getelementptr inbounds i8, ptr %42, i64 8
  %174 = extractvalue { <2 x float>, <2 x float> } %170, 1
  store <2 x float> %174, ptr %173, align 8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %46) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %45) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %44) #9
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %43) #9
  %175 = zext nneg i32 %6 to i64
  %176 = zext nneg i32 %7 to i64
  %177 = uitofp nneg i32 %6 to float
  %178 = fadd float %177, -1.000000e+00
  %179 = uitofp nneg i32 %7 to float
  %.sroa.236.0..sroa_idx = getelementptr inbounds i8, ptr %48, i64 8
  %.sroa.232.0..sroa_idx = getelementptr inbounds i8, ptr %47, i64 8
  %.sroa.228.0..sroa_idx = getelementptr inbounds i8, ptr %54, i64 8
  %.sroa.224.0..sroa_idx = getelementptr inbounds i8, ptr %53, i64 8
  %180 = getelementptr inbounds i8, ptr %0, i64 24
  %181 = getelementptr inbounds i8, ptr %0, i64 72
  br label %.preheader146

.preheader146:                                    ; preds = %171, %188
  %.0111155 = phi i64 [ 0, %171 ], [ %189, %188 ]
  %182 = uitofp nneg i64 %.0111155 to float
  %183 = fdiv float %182, %178
  %184 = fmul float %183, 0x401921FA00000000
  br label %190

185:                                              ; preds = %188
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %62) #9
  invoke void @_ZN3cgpL17connectivity_gridEmm(ptr dead_on_unwind nonnull writable sret(%"struct.cgp::numarray.6") align 8 %62, i64 noundef %175, i64 noundef %176)
          to label %234 unwind label %242

186:                                              ; preds = %169
  %187 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %46) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %45) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %44) #9
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %43) #9
  br label %303

188:                                              ; preds = %224
  %189 = add nuw nsw i64 %.0111155, 1
  %exitcond160.not = icmp eq i64 %189, %175
  br i1 %exitcond160.not, label %185, label %.preheader146, !llvm.loop !11

190:                                              ; preds = %.preheader146, %224
  %.0112154 = phi i64 [ 0, %.preheader146 ], [ %225, %224 ]
  %191 = uitofp nneg i64 %.0112154 to float
  %192 = fdiv float %191, %179
  %193 = fsub float 1.000000e+00, %192
  %194 = fmul float %193, %1
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %47) #9
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %48) #9
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %49) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %50) #9
  %195 = call noundef float @_ZSt3cosf(float noundef %184)
  %196 = fmul float %194, %195
  store float %196, ptr %50, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %51) #9
  %197 = call noundef float @_ZSt3sinf(float noundef %184)
  %198 = fmul float %194, %197
  store float %198, ptr %51, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %52) #9
  %199 = load float, ptr %9, align 4, !tbaa !5
  %200 = fmul float %192, %199
  store float %200, ptr %52, align 4, !tbaa !5
  call void @_ZN3cgp14numarray_stackIfLi3EEC2ERKfS3_S3_(ptr noundef nonnull align 4 dereferenceable(12) %49, ptr noundef nonnull align 4 dereferenceable(4) %50, ptr noundef nonnull align 4 dereferenceable(4) %51, ptr noundef nonnull align 4 dereferenceable(4) %52)
  %201 = invoke { <2 x float>, float } @_ZN3cgpmlERKNS_18rotation_transformERKNS_14numarray_stackIfLi3EEE(ptr noundef nonnull align 4 dereferenceable(16) %42, ptr noundef nonnull align 4 dereferenceable(12) %49)
          to label %202 unwind label %226

202:                                              ; preds = %190
  %.fca.0.extract33 = extractvalue { <2 x float>, float } %201, 0
  %.fca.1.extract34 = extractvalue { <2 x float>, float } %201, 1
  store <2 x float> %.fca.0.extract33, ptr %48, align 8
  store float %.fca.1.extract34, ptr %.sroa.236.0..sroa_idx, align 8
  %203 = invoke { <2 x float>, float } @_ZN3cgpplERKNS_14numarray_stackIfLi3EEES3_(ptr noundef nonnull align 4 dereferenceable(12) %48, ptr noundef nonnull align 4 dereferenceable(12) %3)
          to label %204 unwind label %226

204:                                              ; preds = %202
  %.fca.0.extract29 = extractvalue { <2 x float>, float } %203, 0
  %.fca.1.extract30 = extractvalue { <2 x float>, float } %203, 1
  store <2 x float> %.fca.0.extract29, ptr %47, align 8
  store float %.fca.1.extract30, ptr %.sroa.232.0..sroa_idx, align 8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %52) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %51) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %50) #9
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %49) #9
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %48) #9
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %53) #9
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %54) #9
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %55) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %56) #9
  %205 = call noundef float @_ZSt3cosf(float noundef %184)
  store float %205, ptr %56, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %57) #9
  %206 = call noundef float @_ZSt3sinf(float noundef %184)
  store float %206, ptr %57, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %58) #9
  %207 = load float, ptr %9, align 4, !tbaa !5
  %208 = fdiv float %1, %207
  store float %208, ptr %58, align 4, !tbaa !5
  call void @_ZN3cgp14numarray_stackIfLi3EEC2ERKfS3_S3_(ptr noundef nonnull align 4 dereferenceable(12) %55, ptr noundef nonnull align 4 dereferenceable(4) %56, ptr noundef nonnull align 4 dereferenceable(4) %57, ptr noundef nonnull align 4 dereferenceable(4) %58)
  %209 = invoke { <2 x float>, float } @_ZN3cgp9normalizeIfLi3EEENS_14numarray_stackIT_XT0_EEERKS3_(ptr noundef nonnull align 4 dereferenceable(12) %55)
          to label %210 unwind label %228

210:                                              ; preds = %204
  %.fca.0.extract25 = extractvalue { <2 x float>, float } %209, 0
  %.fca.1.extract26 = extractvalue { <2 x float>, float } %209, 1
  store <2 x float> %.fca.0.extract25, ptr %54, align 8
  store float %.fca.1.extract26, ptr %.sroa.228.0..sroa_idx, align 8
  %211 = invoke { <2 x float>, float } @_ZN3cgpmlERKNS_18rotation_transformERKNS_14numarray_stackIfLi3EEE(ptr noundef nonnull align 4 dereferenceable(16) %42, ptr noundef nonnull align 4 dereferenceable(12) %54)
          to label %212 unwind label %228

212:                                              ; preds = %210
  %.fca.0.extract21 = extractvalue { <2 x float>, float } %211, 0
  %.fca.1.extract22 = extractvalue { <2 x float>, float } %211, 1
  store <2 x float> %.fca.0.extract21, ptr %53, align 8
  store float %.fca.1.extract22, ptr %.sroa.224.0..sroa_idx, align 8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %58) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %57) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %56) #9
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %55) #9
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %54) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %59) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %60) #9
  %213 = call noundef float @_ZSt3cosf(float noundef %184)
  %214 = fmul float %193, %213
  %215 = call float @llvm.fmuladd.f32(float %214, float 5.000000e-01, float 5.000000e-01)
  store float %215, ptr %60, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %61) #9
  %216 = call noundef float @_ZSt3sinf(float noundef %184)
  %217 = fmul float %193, %216
  %218 = call float @llvm.fmuladd.f32(float %217, float 5.000000e-01, float 5.000000e-01)
  store float %218, ptr %61, align 4, !tbaa !5
  call void @_ZN3cgp14numarray_stackIfLi2EEC2ERKfS3_(ptr noundef nonnull align 4 dereferenceable(8) %59, ptr noundef nonnull align 4 dereferenceable(4) %60, ptr noundef nonnull align 4 dereferenceable(4) %61)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %61) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %60) #9
  %219 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN3cgp8numarrayINS_14numarray_stackIfLi3EEEE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 4 dereferenceable(12) %47)
          to label %220 unwind label %230

220:                                              ; preds = %212
  %221 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN3cgp8numarrayINS_14numarray_stackIfLi3EEEE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %180, ptr noundef nonnull align 4 dereferenceable(12) %53)
          to label %222 unwind label %230

222:                                              ; preds = %220
  %223 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN3cgp8numarrayINS_14numarray_stackIfLi2EEEE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %181, ptr noundef nonnull align 4 dereferenceable(8) %59)
          to label %224 unwind label %230

224:                                              ; preds = %222
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %59) #9
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %53) #9
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %47) #9
  %225 = add nuw nsw i64 %.0112154, 1
  %exitcond.not = icmp eq i64 %225, %176
  br i1 %exitcond.not, label %188, label %190, !llvm.loop !13

226:                                              ; preds = %202, %190
  %227 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %52) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %51) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %50) #9
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %49) #9
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %48) #9
  br label %233

228:                                              ; preds = %210, %204
  %229 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %58) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %57) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %56) #9
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %55) #9
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %54) #9
  br label %232

230:                                              ; preds = %222, %220, %212
  %231 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %59) #9
  br label %232

232:                                              ; preds = %230, %228
  %.pn120 = phi { ptr, i32 } [ %231, %230 ], [ %229, %228 ]
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %53) #9
  br label %233

233:                                              ; preds = %232, %226
  %.pn120.pn = phi { ptr, i32 } [ %.pn120, %232 ], [ %227, %226 ]
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %47) #9
  br label %303

234:                                              ; preds = %185
  %235 = getelementptr inbounds i8, ptr %0, i64 96
  %236 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN3cgp8numarrayINS_14numarray_stackIjLi3EEEEaSEOS3_(ptr noundef nonnull align 8 dereferenceable(24) %235, ptr noundef nonnull align 8 dereferenceable(24) %62) #9
  call void @_ZN3cgp8numarrayINS_14numarray_stackIjLi3EEEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %62) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %62) #9
  %237 = invoke noundef nonnull align 8 dereferenceable(120) ptr @_ZN3cgp4mesh17flip_connectivityEv(ptr noundef nonnull align 8 dereferenceable(120) %0)
          to label %.preheader145 unwind label %244

.preheader145:                                    ; preds = %234
  %238 = add nsw i32 %6, -1
  %239 = sext i32 %238 to i64
  %.not = icmp eq i32 %238, 0
  br i1 %.not, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %.preheader145
  %.sroa.216.0..sroa_idx = getelementptr inbounds i8, ptr %64, i64 8
  %.sroa.212.0..sroa_idx = getelementptr inbounds i8, ptr %63, i64 8
  %.sroa.28.0..sroa_idx = getelementptr inbounds i8, ptr %69, i64 8
  %.sroa.2.0..sroa_idx = getelementptr inbounds i8, ptr %68, i64 8
  br label %246

.preheader:                                       ; preds = %267
  br i1 %.not, label %._crit_edge, label %.lr.ph158

.lr.ph158:                                        ; preds = %.preheader
  %240 = mul nuw nsw i32 %7, %6
  %241 = zext nneg i32 %240 to i64
  br label %277

242:                                              ; preds = %185
  %243 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %62) #9
  br label %303

244:                                              ; preds = %300, %234
  %245 = landingpad { ptr, i32 }
          cleanup
  br label %303

246:                                              ; preds = %.lr.ph, %267
  %.0113156 = phi i64 [ 0, %.lr.ph ], [ %268, %267 ]
  %247 = uitofp i64 %.0113156 to float
  %248 = fdiv float %247, %178
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %63) #9
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %64) #9
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %65) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %66) #9
  store i32 0, ptr %66, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %67) #9
  store i32 0, ptr %67, align 4, !tbaa !9
  call void @_ZN3cgp14numarray_stackIfLi3EEC2IiifEERKT_RKT0_RKT1_(ptr noundef nonnull align 4 dereferenceable(12) %65, ptr noundef nonnull align 4 dereferenceable(4) %66, ptr noundef nonnull align 4 dereferenceable(4) %67, ptr noundef nonnull align 4 dereferenceable(4) %9)
  %249 = invoke { <2 x float>, float } @_ZN3cgpmlERKNS_18rotation_transformERKNS_14numarray_stackIfLi3EEE(ptr noundef nonnull align 4 dereferenceable(16) %42, ptr noundef nonnull align 4 dereferenceable(12) %65)
          to label %250 unwind label %269

250:                                              ; preds = %246
  %.fca.0.extract13 = extractvalue { <2 x float>, float } %249, 0
  %.fca.1.extract14 = extractvalue { <2 x float>, float } %249, 1
  store <2 x float> %.fca.0.extract13, ptr %64, align 8
  store float %.fca.1.extract14, ptr %.sroa.216.0..sroa_idx, align 8
  %251 = invoke { <2 x float>, float } @_ZN3cgpplERKNS_14numarray_stackIfLi3EEES3_(ptr noundef nonnull align 4 dereferenceable(12) %64, ptr noundef nonnull align 4 dereferenceable(12) %3)
          to label %252 unwind label %269

252:                                              ; preds = %250
  %.fca.0.extract9 = extractvalue { <2 x float>, float } %251, 0
  %.fca.1.extract10 = extractvalue { <2 x float>, float } %251, 1
  store <2 x float> %.fca.0.extract9, ptr %63, align 8
  store float %.fca.1.extract10, ptr %.sroa.212.0..sroa_idx, align 8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %67) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %66) #9
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %65) #9
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %64) #9
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %68) #9
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %69) #9
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %70) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %71) #9
  %253 = fmul float %248, 0x401921FA00000000
  %254 = call noundef float @_ZSt3cosf(float noundef %253)
  store float %254, ptr %71, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %72) #9
  %255 = call noundef float @_ZSt3sinf(float noundef %253)
  store float %255, ptr %72, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %73) #9
  %256 = load float, ptr %9, align 4, !tbaa !5
  %257 = fdiv float %1, %256
  store float %257, ptr %73, align 4, !tbaa !5
  call void @_ZN3cgp14numarray_stackIfLi3EEC2ERKfS3_S3_(ptr noundef nonnull align 4 dereferenceable(12) %70, ptr noundef nonnull align 4 dereferenceable(4) %71, ptr noundef nonnull align 4 dereferenceable(4) %72, ptr noundef nonnull align 4 dereferenceable(4) %73)
  %258 = invoke { <2 x float>, float } @_ZN3cgp9normalizeIfLi3EEENS_14numarray_stackIT_XT0_EEERKS3_(ptr noundef nonnull align 4 dereferenceable(12) %70)
          to label %259 unwind label %271

259:                                              ; preds = %252
  %.fca.0.extract5 = extractvalue { <2 x float>, float } %258, 0
  %.fca.1.extract6 = extractvalue { <2 x float>, float } %258, 1
  store <2 x float> %.fca.0.extract5, ptr %69, align 8
  store float %.fca.1.extract6, ptr %.sroa.28.0..sroa_idx, align 8
  %260 = invoke { <2 x float>, float } @_ZN3cgpmlERKNS_18rotation_transformERKNS_14numarray_stackIfLi3EEE(ptr noundef nonnull align 4 dereferenceable(16) %42, ptr noundef nonnull align 4 dereferenceable(12) %69)
          to label %261 unwind label %271

261:                                              ; preds = %259
  %.fca.0.extract = extractvalue { <2 x float>, float } %260, 0
  %.fca.1.extract = extractvalue { <2 x float>, float } %260, 1
  store <2 x float> %.fca.0.extract, ptr %68, align 8
  store float %.fca.1.extract, ptr %.sroa.2.0..sroa_idx, align 8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %73) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %72) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %71) #9
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %70) #9
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %69) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %74) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %75) #9
  store float 5.000000e-01, ptr %75, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %76) #9
  store float 5.000000e-01, ptr %76, align 4, !tbaa !5
  call void @_ZN3cgp14numarray_stackIfLi2EEC2ERKfS3_(ptr noundef nonnull align 4 dereferenceable(8) %74, ptr noundef nonnull align 4 dereferenceable(4) %75, ptr noundef nonnull align 4 dereferenceable(4) %76)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %76) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %75) #9
  %262 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN3cgp8numarrayINS_14numarray_stackIfLi3EEEE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 4 dereferenceable(12) %63)
          to label %263 unwind label %273

263:                                              ; preds = %261
  %264 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN3cgp8numarrayINS_14numarray_stackIfLi3EEEE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %180, ptr noundef nonnull align 4 dereferenceable(12) %68)
          to label %265 unwind label %273

265:                                              ; preds = %263
  %266 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN3cgp8numarrayINS_14numarray_stackIfLi2EEEE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %181, ptr noundef nonnull align 4 dereferenceable(8) %74)
          to label %267 unwind label %273

267:                                              ; preds = %265
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %74) #9
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %68) #9
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %63) #9
  %268 = add nuw i64 %.0113156, 1
  %exitcond161.not = icmp eq i64 %268, %239
  br i1 %exitcond161.not, label %.preheader, label %246, !llvm.loop !14

269:                                              ; preds = %250, %246
  %270 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %67) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %66) #9
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %65) #9
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %64) #9
  br label %276

271:                                              ; preds = %259, %252
  %272 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %73) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %72) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %71) #9
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %70) #9
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %69) #9
  br label %275

273:                                              ; preds = %265, %263, %261
  %274 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %74) #9
  br label %275

275:                                              ; preds = %273, %271
  %.pn117 = phi { ptr, i32 } [ %274, %273 ], [ %272, %271 ]
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %68) #9
  br label %276

276:                                              ; preds = %275, %269
  %.pn117.pn = phi { ptr, i32 } [ %.pn117, %275 ], [ %270, %269 ]
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %63) #9
  br label %303

._crit_edge:                                      ; preds = %286, %.preheader145, %.preheader
  br i1 %5, label %289, label %300

277:                                              ; preds = %.lr.ph158, %286
  %.0157 = phi i64 [ 0, %.lr.ph158 ], [ %278, %286 ]
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %77) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %78) #9
  %278 = add nuw i64 %.0157, 1
  %279 = mul i64 %278, %176
  %280 = add i64 %279, -1
  store i64 %280, ptr %78, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %79) #9
  %281 = add i64 %.0157, 2
  %282 = mul i64 %281, %176
  %283 = add i64 %282, -1
  store i64 %283, ptr %79, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %80) #9
  %284 = add i64 %.0157, %241
  store i64 %284, ptr %80, align 8, !tbaa !15
  call void @_ZN3cgp14numarray_stackIjLi3EEC2ImmmEERKT_RKT0_RKT1_(ptr noundef nonnull align 4 dereferenceable(12) %77, ptr noundef nonnull align 8 dereferenceable(8) %78, ptr noundef nonnull align 8 dereferenceable(8) %79, ptr noundef nonnull align 8 dereferenceable(8) %80)
  %285 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN3cgp8numarrayINS_14numarray_stackIjLi3EEEE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %235, ptr noundef nonnull align 4 dereferenceable(12) %77)
          to label %286 unwind label %287

286:                                              ; preds = %277
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %80) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %79) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %78) #9
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %77) #9
  %exitcond162.not = icmp eq i64 %278, %239
  br i1 %exitcond162.not, label %._crit_edge, label %277, !llvm.loop !17

287:                                              ; preds = %277
  %288 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %80) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %79) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %78) #9
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %77) #9
  br label %303

289:                                              ; preds = %._crit_edge
  call void @llvm.lifetime.start.p0(i64 120, ptr nonnull %81) #9
  invoke void @_ZN3cgp19mesh_primitive_discEfRKNS_14numarray_stackIfLi3EEES3_i(ptr dead_on_unwind nonnull writable sret(%"struct.cgp::mesh") align 8 %81, float noundef %1, ptr noundef nonnull align 4 dereferenceable(12) %3, ptr noundef nonnull align 4 dereferenceable(12) %4, i32 noundef %6)
          to label %290 unwind label %295

290:                                              ; preds = %289
  %291 = invoke noundef nonnull align 8 dereferenceable(120) ptr @_ZN3cgp4mesh17flip_connectivityEv(ptr noundef nonnull align 8 dereferenceable(120) %81)
          to label %292 unwind label %297

292:                                              ; preds = %290
  %293 = invoke noundef nonnull align 8 dereferenceable(120) ptr @_ZN3cgp4mesh9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(120) %0, ptr noundef nonnull align 8 dereferenceable(120) %291)
          to label %294 unwind label %297

294:                                              ; preds = %292
  call void @_ZN3cgp4meshD2Ev(ptr noundef nonnull align 8 dereferenceable(120) %81) #9
  call void @llvm.lifetime.end.p0(i64 120, ptr nonnull %81) #9
  br label %300

295:                                              ; preds = %289
  %296 = landingpad { ptr, i32 }
          cleanup
  br label %299

297:                                              ; preds = %292, %290
  %298 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3cgp4meshD2Ev(ptr noundef nonnull align 8 dereferenceable(120) %81) #9
  br label %299

299:                                              ; preds = %297, %295
  %.pn = phi { ptr, i32 } [ %298, %297 ], [ %296, %295 ]
  call void @llvm.lifetime.end.p0(i64 120, ptr nonnull %81) #9
  br label %303

300:                                              ; preds = %294, %._crit_edge
  %301 = invoke noundef nonnull align 8 dereferenceable(120) ptr @_ZN3cgp4mesh16fill_empty_fieldEv(ptr noundef nonnull align 8 dereferenceable(120) %0)
          to label %302 unwind label %244

302:                                              ; preds = %300
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %42) #9
  ret void

303:                                              ; preds = %299, %287, %276, %244, %242, %233, %186
  %.pn120.pn.pn = phi { ptr, i32 } [ %.pn120.pn, %233 ], [ %.pn117.pn, %276 ], [ %288, %287 ], [ %245, %244 ], [ %.pn, %299 ], [ %243, %242 ], [ %187, %186 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %42) #9
  call void @_ZN3cgp4meshD2Ev(ptr noundef nonnull align 8 dereferenceable(120) %0) #9
  br label %304

304:                                              ; preds = %303, %168, %146, %124, %102
  %.pn139.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn139.pn.pn.pn, %102 ], [ %.pn134.pn.pn.pn, %124 ], [ %.pn129.pn.pn.pn, %146 ], [ %.pn124.pn.pn.pn, %168 ], [ %.pn120.pn.pn, %303 ]
  resume { ptr, i32 } %.pn139.pn.pn.pn.pn
}

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

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

!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 = !{!"int", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = distinct !{!14, !12}
!15 = !{!16, !16, i64 0}
!16 = !{!"long", !7, i64 0}
!17 = distinct !{!17, !12}


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