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

@.str.2 = external hidden unnamed_addr constant [89 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [24 x i8], align 1
@__func__._ZN3cgp20mesh_primitive_torusEffRKNS_14numarray_stackIfLi3EEES3_ii = external hidden unnamed_addr constant [21 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [5 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 @_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: inlinehint mustprogress uwtable
declare dso_local { <2 x float>, float } @_ZN3cgp5crossERKNS_14numarray_stackIfLi3EEES3_(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) #6

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3cgp20mesh_primitive_torusEffRKNS_14numarray_stackIfLi3EEES3_ii(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, i32 noundef %5, i32 noundef %6) #8 personality ptr @__gxx_personality_v0 {
  %8 = alloca ptr, align 8
  %9 = alloca float, align 4
  %10 = alloca float, align 4
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca %"class.std::__cxx11::basic_string", align 8
  %16 = alloca %"class.std::allocator.12", align 1
  %17 = alloca ptr, align 8
  %18 = alloca i32, align 4
  %19 = alloca %"class.std::__cxx11::basic_string", align 8
  %20 = alloca %"class.std::allocator.12", align 1
  %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 %"struct.cgp::rotation_transform", align 4
  %50 = alloca %"struct.cgp::numarray_stack", align 4
  %51 = alloca i32, align 4
  %52 = alloca i32, align 4
  %53 = alloca i32, align 4
  %54 = alloca i1, align 1
  %55 = alloca i64, align 8
  %56 = alloca i32, align 4
  %57 = alloca i64, align 8
  %58 = alloca float, align 4
  %59 = alloca float, align 4
  %60 = alloca float, align 4
  %61 = alloca float, align 4
  %62 = alloca %"struct.cgp::numarray_stack", align 4
  %63 = alloca float, align 4
  %64 = alloca float, align 4
  %65 = alloca float, align 4
  %66 = alloca %"struct.cgp::numarray_stack", align 4
  %67 = alloca float, align 4
  %68 = alloca float, align 4
  %69 = alloca float, align 4
  %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", align 4
  %75 = alloca %"struct.cgp::numarray_stack", align 4
  %76 = alloca { <2 x float>, float }, align 8
  %77 = alloca { <2 x float>, float }, align 8
  %78 = alloca %"struct.cgp::numarray_stack", align 4
  %79 = alloca %"struct.cgp::numarray_stack", align 4
  %80 = alloca { <2 x float>, float }, align 8
  %81 = alloca { <2 x float>, float }, align 8
  %82 = alloca %"struct.cgp::numarray_stack", align 4
  %83 = alloca { <2 x float>, float }, align 8
  %84 = alloca %"struct.cgp::numarray_stack.16", align 4
  %85 = alloca %"struct.cgp::numarray.6", align 8
  store ptr %0, ptr %8, align 8
  store float %1, ptr %9, align 4, !tbaa !5
  store float %2, ptr %10, align 4, !tbaa !5
  store ptr %3, ptr %11, align 8, !tbaa !9
  store ptr %4, ptr %12, align 8, !tbaa !9
  store i32 %5, ptr %13, align 4, !tbaa !11
  store i32 %6, ptr %14, align 4, !tbaa !11
  %86 = load float, ptr %9, align 4, !tbaa !5
  %87 = fcmp ogt float %86, 0.000000e+00
  %88 = zext i1 %87 to i32
  %89 = icmp eq i32 %88, 0
  br i1 %89, label %90, label %120

90:                                               ; preds = %7
  call void @llvm.lifetime.start.p0(i64 32, ptr %15) #10
  call void @llvm.lifetime.start.p0(i64 1, ptr %16) #10
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %16) #10
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %15, ptr noundef @.str.17, ptr noundef nonnull align 1 dereferenceable(1) %16)
          to label %91 unwind label %96

91:                                               ; preds = %90
  call void @llvm.lifetime.start.p0(i64 32, ptr %19) #10
  call void @llvm.lifetime.start.p0(i64 1, ptr %20) #10
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %20) #10
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %19, ptr noundef @.str.18, ptr noundef nonnull align 1 dereferenceable(1) %20)
          to label %92 unwind label %100

92:                                               ; preds = %91
  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.2, ptr noundef nonnull align 1 dereferenceable(1) %22)
          to label %93 unwind label %104

93:                                               ; preds = %92
  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 @__func__._ZN3cgp20mesh_primitive_torusEffRKNS_14numarray_stackIfLi3EEES3_ii, ptr noundef nonnull align 1 dereferenceable(1) %24)
          to label %94 unwind label %108

94:                                               ; preds = %93
  invoke void @_ZN3cgp10call_errorERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES7_S7_S7_i(ptr noundef nonnull align 8 dereferenceable(32) %15, ptr noundef nonnull align 8 dereferenceable(32) %19, ptr noundef nonnull align 8 dereferenceable(32) %21, ptr noundef nonnull align 8 dereferenceable(32) %23, i32 noundef 278) #11
          to label %95 unwind label %112

95:                                               ; preds = %94
  unreachable

96:                                               ; preds = %90
  %97 = landingpad { ptr, i32 }
          cleanup
  %98 = extractvalue { ptr, i32 } %97, 0
  store ptr %98, ptr %17, align 8
  %99 = extractvalue { ptr, i32 } %97, 1
  store i32 %99, ptr %18, align 4
  br label %119

100:                                              ; preds = %91
  %101 = landingpad { ptr, i32 }
          cleanup
  %102 = extractvalue { ptr, i32 } %101, 0
  store ptr %102, ptr %17, align 8
  %103 = extractvalue { ptr, i32 } %101, 1
  store i32 %103, ptr %18, align 4
  br label %118

104:                                              ; preds = %92
  %105 = landingpad { ptr, i32 }
          cleanup
  %106 = extractvalue { ptr, i32 } %105, 0
  store ptr %106, ptr %17, align 8
  %107 = extractvalue { ptr, i32 } %105, 1
  store i32 %107, ptr %18, align 4
  br label %117

108:                                              ; preds = %93
  %109 = landingpad { ptr, i32 }
          cleanup
  %110 = extractvalue { ptr, i32 } %109, 0
  store ptr %110, ptr %17, align 8
  %111 = extractvalue { ptr, i32 } %109, 1
  store i32 %111, ptr %18, align 4
  br label %116

112:                                              ; preds = %94
  %113 = landingpad { ptr, i32 }
          cleanup
  %114 = extractvalue { ptr, i32 } %113, 0
  store ptr %114, ptr %17, align 8
  %115 = extractvalue { ptr, i32 } %113, 1
  store i32 %115, ptr %18, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %23) #10
  br label %116

116:                                              ; preds = %112, %108
  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 %117

117:                                              ; preds = %116, %104
  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) %19) #10
  br label %118

118:                                              ; preds = %117, %100
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %20) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr %20) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr %19) #10
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #10
  br label %119

119:                                              ; preds = %118, %96
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %16) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr %16) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr %15) #10
  br label %446

120:                                              ; preds = %7
  %121 = load float, ptr %10, align 4, !tbaa !5
  %122 = fcmp ogt float %121, 0.000000e+00
  %123 = zext i1 %122 to i32
  %124 = icmp eq i32 %123, 0
  br i1 %124, label %125, label %155

125:                                              ; preds = %120
  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 @.str.19, ptr noundef nonnull align 1 dereferenceable(1) %26)
          to label %126 unwind label %131

126:                                              ; preds = %125
  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.18, ptr noundef nonnull align 1 dereferenceable(1) %28)
          to label %127 unwind label %135

127:                                              ; preds = %126
  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.2, ptr noundef nonnull align 1 dereferenceable(1) %30)
          to label %128 unwind label %139

128:                                              ; preds = %127
  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 @__func__._ZN3cgp20mesh_primitive_torusEffRKNS_14numarray_stackIfLi3EEES3_ii, ptr noundef nonnull align 1 dereferenceable(1) %32)
          to label %129 unwind label %143

129:                                              ; preds = %128
  invoke void @_ZN3cgp10call_errorERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES7_S7_S7_i(ptr noundef nonnull align 8 dereferenceable(32) %25, ptr noundef nonnull align 8 dereferenceable(32) %27, ptr noundef nonnull align 8 dereferenceable(32) %29, ptr noundef nonnull align 8 dereferenceable(32) %31, i32 noundef 279) #11
          to label %130 unwind label %147

130:                                              ; preds = %129
  unreachable

131:                                              ; preds = %125
  %132 = landingpad { ptr, i32 }
          cleanup
  %133 = extractvalue { ptr, i32 } %132, 0
  store ptr %133, ptr %17, align 8
  %134 = extractvalue { ptr, i32 } %132, 1
  store i32 %134, ptr %18, align 4
  br label %154

135:                                              ; preds = %126
  %136 = landingpad { ptr, i32 }
          cleanup
  %137 = extractvalue { ptr, i32 } %136, 0
  store ptr %137, ptr %17, align 8
  %138 = extractvalue { ptr, i32 } %136, 1
  store i32 %138, ptr %18, align 4
  br label %153

139:                                              ; preds = %127
  %140 = landingpad { ptr, i32 }
          cleanup
  %141 = extractvalue { ptr, i32 } %140, 0
  store ptr %141, ptr %17, align 8
  %142 = extractvalue { ptr, i32 } %140, 1
  store i32 %142, ptr %18, align 4
  br label %152

143:                                              ; preds = %128
  %144 = landingpad { ptr, i32 }
          cleanup
  %145 = extractvalue { ptr, i32 } %144, 0
  store ptr %145, ptr %17, align 8
  %146 = extractvalue { ptr, i32 } %144, 1
  store i32 %146, ptr %18, align 4
  br label %151

147:                                              ; preds = %129
  %148 = landingpad { ptr, i32 }
          cleanup
  %149 = extractvalue { ptr, i32 } %148, 0
  store ptr %149, ptr %17, align 8
  %150 = extractvalue { ptr, i32 } %148, 1
  store i32 %150, ptr %18, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %31) #10
  br label %151

151:                                              ; preds = %147, %143
  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 %152

152:                                              ; preds = %151, %139
  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 %153

153:                                              ; preds = %152, %135
  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
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %25) #10
  br label %154

154:                                              ; preds = %153, %131
  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
  br label %446

155:                                              ; preds = %120
  %156 = load i32, ptr %13, align 4, !tbaa !11
  %157 = icmp sgt i32 %156, 2
  %158 = zext i1 %157 to i32
  %159 = icmp eq i32 %158, 0
  br i1 %159, label %160, label %190

160:                                              ; preds = %155
  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 @.str.20, ptr noundef nonnull align 1 dereferenceable(1) %34)
          to label %161 unwind label %166

161:                                              ; preds = %160
  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.21, ptr noundef nonnull align 1 dereferenceable(1) %36)
          to label %162 unwind label %170

162:                                              ; preds = %161
  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.2, ptr noundef nonnull align 1 dereferenceable(1) %38)
          to label %163 unwind label %174

163:                                              ; preds = %162
  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 @__func__._ZN3cgp20mesh_primitive_torusEffRKNS_14numarray_stackIfLi3EEES3_ii, ptr noundef nonnull align 1 dereferenceable(1) %40)
          to label %164 unwind label %178

164:                                              ; preds = %163
  invoke void @_ZN3cgp10call_errorERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES7_S7_S7_i(ptr noundef nonnull align 8 dereferenceable(32) %33, ptr noundef nonnull align 8 dereferenceable(32) %35, ptr noundef nonnull align 8 dereferenceable(32) %37, ptr noundef nonnull align 8 dereferenceable(32) %39, i32 noundef 280) #11
          to label %165 unwind label %182

165:                                              ; preds = %164
  unreachable

166:                                              ; preds = %160
  %167 = landingpad { ptr, i32 }
          cleanup
  %168 = extractvalue { ptr, i32 } %167, 0
  store ptr %168, ptr %17, align 8
  %169 = extractvalue { ptr, i32 } %167, 1
  store i32 %169, ptr %18, align 4
  br label %189

170:                                              ; preds = %161
  %171 = landingpad { ptr, i32 }
          cleanup
  %172 = extractvalue { ptr, i32 } %171, 0
  store ptr %172, ptr %17, align 8
  %173 = extractvalue { ptr, i32 } %171, 1
  store i32 %173, ptr %18, align 4
  br label %188

174:                                              ; preds = %162
  %175 = landingpad { ptr, i32 }
          cleanup
  %176 = extractvalue { ptr, i32 } %175, 0
  store ptr %176, ptr %17, align 8
  %177 = extractvalue { ptr, i32 } %175, 1
  store i32 %177, ptr %18, align 4
  br label %187

178:                                              ; preds = %163
  %179 = landingpad { ptr, i32 }
          cleanup
  %180 = extractvalue { ptr, i32 } %179, 0
  store ptr %180, ptr %17, align 8
  %181 = extractvalue { ptr, i32 } %179, 1
  store i32 %181, ptr %18, align 4
  br label %186

182:                                              ; preds = %164
  %183 = landingpad { ptr, i32 }
          cleanup
  %184 = extractvalue { ptr, i32 } %183, 0
  store ptr %184, ptr %17, align 8
  %185 = extractvalue { ptr, i32 } %183, 1
  store i32 %185, ptr %18, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %39) #10
  br label %186

186:                                              ; preds = %182, %178
  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 %187

187:                                              ; preds = %186, %174
  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 %188

188:                                              ; preds = %187, %170
  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
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %33) #10
  br label %189

189:                                              ; preds = %188, %166
  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
  br label %446

190:                                              ; preds = %155
  %191 = load i32, ptr %14, align 4, !tbaa !11
  %192 = icmp sgt i32 %191, 2
  %193 = zext i1 %192 to i32
  %194 = icmp eq i32 %193, 0
  br i1 %194, label %195, label %225

195:                                              ; preds = %190
  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 @.str.22, ptr noundef nonnull align 1 dereferenceable(1) %42)
          to label %196 unwind label %201

196:                                              ; preds = %195
  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.21, ptr noundef nonnull align 1 dereferenceable(1) %44)
          to label %197 unwind label %205

197:                                              ; preds = %196
  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.2, ptr noundef nonnull align 1 dereferenceable(1) %46)
          to label %198 unwind label %209

198:                                              ; preds = %197
  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 @__func__._ZN3cgp20mesh_primitive_torusEffRKNS_14numarray_stackIfLi3EEES3_ii, ptr noundef nonnull align 1 dereferenceable(1) %48)
          to label %199 unwind label %213

199:                                              ; preds = %198
  invoke void @_ZN3cgp10call_errorERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES7_S7_S7_i(ptr noundef nonnull align 8 dereferenceable(32) %41, ptr noundef nonnull align 8 dereferenceable(32) %43, ptr noundef nonnull align 8 dereferenceable(32) %45, ptr noundef nonnull align 8 dereferenceable(32) %47, i32 noundef 281) #11
          to label %200 unwind label %217

200:                                              ; preds = %199
  unreachable

201:                                              ; preds = %195
  %202 = landingpad { ptr, i32 }
          cleanup
  %203 = extractvalue { ptr, i32 } %202, 0
  store ptr %203, ptr %17, align 8
  %204 = extractvalue { ptr, i32 } %202, 1
  store i32 %204, ptr %18, align 4
  br label %224

205:                                              ; preds = %196
  %206 = landingpad { ptr, i32 }
          cleanup
  %207 = extractvalue { ptr, i32 } %206, 0
  store ptr %207, ptr %17, align 8
  %208 = extractvalue { ptr, i32 } %206, 1
  store i32 %208, ptr %18, align 4
  br label %223

209:                                              ; preds = %197
  %210 = landingpad { ptr, i32 }
          cleanup
  %211 = extractvalue { ptr, i32 } %210, 0
  store ptr %211, ptr %17, align 8
  %212 = extractvalue { ptr, i32 } %210, 1
  store i32 %212, ptr %18, align 4
  br label %222

213:                                              ; preds = %198
  %214 = landingpad { ptr, i32 }
          cleanup
  %215 = extractvalue { ptr, i32 } %214, 0
  store ptr %215, ptr %17, align 8
  %216 = extractvalue { ptr, i32 } %214, 1
  store i32 %216, ptr %18, align 4
  br label %221

217:                                              ; preds = %199
  %218 = landingpad { ptr, i32 }
          cleanup
  %219 = extractvalue { ptr, i32 } %218, 0
  store ptr %219, ptr %17, align 8
  %220 = extractvalue { ptr, i32 } %218, 1
  store i32 %220, ptr %18, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %47) #10
  br label %221

221:                                              ; preds = %217, %213
  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 %222

222:                                              ; preds = %221, %209
  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 %223

223:                                              ; preds = %222, %205
  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
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %41) #10
  br label %224

224:                                              ; preds = %223, %201
  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
  br label %446

225:                                              ; preds = %190
  call void @llvm.lifetime.start.p0(i64 16, ptr %49) #10
  call void @llvm.lifetime.start.p0(i64 12, ptr %50) #10
  call void @llvm.lifetime.start.p0(i64 4, ptr %51) #10
  store i32 0, ptr %51, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %52) #10
  store i32 0, ptr %52, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %53) #10
  store i32 1, ptr %53, align 4, !tbaa !11
  call void @_ZN3cgp14numarray_stackIfLi3EEC2IiiiEERKT_RKT0_RKT1_(ptr noundef nonnull align 4 dereferenceable(12) %50, ptr noundef nonnull align 4 dereferenceable(4) %51, ptr noundef nonnull align 4 dereferenceable(4) %52, ptr noundef nonnull align 4 dereferenceable(4) %53)
  %226 = load ptr, ptr %12, align 8, !tbaa !9
  %227 = call { <2 x float>, <2 x float> } @_ZN3cgp18rotation_transform21from_vector_transformERKNS_14numarray_stackIfLi3EEES4_(ptr noundef nonnull align 4 dereferenceable(12) %50, ptr noundef nonnull align 4 dereferenceable(12) %226)
  %228 = getelementptr inbounds %"struct.cgp::rotation_transform", ptr %49, i32 0, i32 0
  %229 = getelementptr inbounds %"struct.cgp::quaternion", ptr %228, i32 0, i32 0
  %230 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %229, i32 0, i32 0
  %231 = extractvalue { <2 x float>, <2 x float> } %227, 0
  store <2 x float> %231, ptr %230, align 4
  %232 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %229, i32 0, i32 1
  %233 = extractvalue { <2 x float>, <2 x float> } %227, 1
  store <2 x float> %233, ptr %232, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %53) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %52) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %51) #10
  call void @llvm.lifetime.end.p0(i64 12, ptr %50) #10
  store i1 false, ptr %54, align 1
  call void @_ZN3cgp4meshC2Ev(ptr noundef nonnull align 8 dereferenceable(120) %0)
  call void @llvm.lifetime.start.p0(i64 8, ptr %55) #10
  store i64 0, ptr %55, align 8, !tbaa !13
  br label %234

234:                                              ; preds = %419, %225
  %235 = load i64, ptr %55, align 8, !tbaa !13
  %236 = load i32, ptr %13, align 4, !tbaa !11
  %237 = sext i32 %236 to i64
  %238 = icmp ult i64 %235, %237
  br i1 %238, label %240, label %239

239:                                              ; preds = %234
  store i32 2, ptr %56, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %55) #10
  br label %422

240:                                              ; preds = %234
  call void @llvm.lifetime.start.p0(i64 8, ptr %57) #10
  store i64 0, ptr %57, align 8, !tbaa !13
  br label %241

241:                                              ; preds = %353, %240
  %242 = load i64, ptr %57, align 8, !tbaa !13
  %243 = load i32, ptr %14, align 4, !tbaa !11
  %244 = sext i32 %243 to i64
  %245 = icmp ult i64 %242, %244
  br i1 %245, label %247, label %246

246:                                              ; preds = %241
  store i32 5, ptr %56, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %57) #10
  br label %418

247:                                              ; preds = %241
  call void @llvm.lifetime.start.p0(i64 4, ptr %58) #10
  %248 = load i64, ptr %55, align 8, !tbaa !13
  %249 = uitofp i64 %248 to float
  %250 = load i32, ptr %13, align 4, !tbaa !11
  %251 = sitofp i32 %250 to float
  %252 = fsub float %251, 1.000000e+00
  %253 = fdiv float %249, %252
  store float %253, ptr %58, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %59) #10
  %254 = load i64, ptr %57, align 8, !tbaa !13
  %255 = uitofp i64 %254 to float
  %256 = load i32, ptr %14, align 4, !tbaa !11
  %257 = sitofp i32 %256 to float
  %258 = fsub float %257, 1.000000e+00
  %259 = fdiv float %255, %258
  store float %259, ptr %59, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %60) #10
  %260 = load float, ptr %59, align 4, !tbaa !5
  %261 = fmul float 0x401921FA00000000, %260
  store float %261, ptr %60, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %61) #10
  %262 = load float, ptr %58, align 4, !tbaa !5
  %263 = fmul float 0x401921FA00000000, %262
  store float %263, ptr %61, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 12, ptr %62) #10
  call void @llvm.lifetime.start.p0(i64 4, ptr %63) #10
  %264 = load float, ptr %9, align 4, !tbaa !5
  %265 = load float, ptr %10, align 4, !tbaa !5
  %266 = load float, ptr %60, align 4, !tbaa !5
  %267 = invoke noundef float @_ZSt3cosf(float noundef %266)
          to label %268 unwind label %356

268:                                              ; preds = %247
  %269 = call float @llvm.fmuladd.f32(float %265, float %267, float %264)
  %270 = load float, ptr %61, align 4, !tbaa !5
  %271 = invoke noundef float @_ZSt3cosf(float noundef %270)
          to label %272 unwind label %356

272:                                              ; preds = %268
  %273 = fmul float %269, %271
  store float %273, ptr %63, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %64) #10
  %274 = load float, ptr %9, align 4, !tbaa !5
  %275 = load float, ptr %10, align 4, !tbaa !5
  %276 = load float, ptr %60, align 4, !tbaa !5
  %277 = invoke noundef float @_ZSt3cosf(float noundef %276)
          to label %278 unwind label %360

278:                                              ; preds = %272
  %279 = call float @llvm.fmuladd.f32(float %275, float %277, float %274)
  %280 = load float, ptr %61, align 4, !tbaa !5
  %281 = invoke noundef float @_ZSt3sinf(float noundef %280)
          to label %282 unwind label %360

282:                                              ; preds = %278
  %283 = fmul float %279, %281
  store float %283, ptr %64, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %65) #10
  %284 = load float, ptr %10, align 4, !tbaa !5
  %285 = load float, ptr %60, align 4, !tbaa !5
  %286 = invoke noundef float @_ZSt3sinf(float noundef %285)
          to label %287 unwind label %364

287:                                              ; preds = %282
  %288 = fmul float %284, %286
  store float %288, ptr %65, align 4, !tbaa !5
  invoke void @_ZN3cgp14numarray_stackIfLi3EEC2ERKfS3_S3_(ptr noundef nonnull align 4 dereferenceable(12) %62, ptr noundef nonnull align 4 dereferenceable(4) %63, ptr noundef nonnull align 4 dereferenceable(4) %64, ptr noundef nonnull align 4 dereferenceable(4) %65)
          to label %289 unwind label %364

289:                                              ; preds = %287
  call void @llvm.lifetime.end.p0(i64 4, ptr %65) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %64) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %63) #10
  call void @llvm.lifetime.start.p0(i64 12, ptr %66) #10
  call void @llvm.lifetime.start.p0(i64 4, ptr %67) #10
  %290 = load float, ptr %60, align 4, !tbaa !5
  %291 = invoke noundef float @_ZSt3sinf(float noundef %290)
          to label %292 unwind label %370

292:                                              ; preds = %289
  %293 = fneg float %291
  %294 = load float, ptr %61, align 4, !tbaa !5
  %295 = invoke noundef float @_ZSt3cosf(float noundef %294)
          to label %296 unwind label %370

296:                                              ; preds = %292
  %297 = fmul float %293, %295
  store float %297, ptr %67, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %68) #10
  %298 = load float, ptr %60, align 4, !tbaa !5
  %299 = invoke noundef float @_ZSt3sinf(float noundef %298)
          to label %300 unwind label %374

300:                                              ; preds = %296
  %301 = fneg float %299
  %302 = load float, ptr %61, align 4, !tbaa !5
  %303 = invoke noundef float @_ZSt3sinf(float noundef %302)
          to label %304 unwind label %374

304:                                              ; preds = %300
  %305 = fmul float %301, %303
  store float %305, ptr %68, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %69) #10
  %306 = load float, ptr %60, align 4, !tbaa !5
  %307 = invoke noundef float @_ZSt3cosf(float noundef %306)
          to label %308 unwind label %378

308:                                              ; preds = %304
  store float %307, ptr %69, align 4, !tbaa !5
  invoke void @_ZN3cgp14numarray_stackIfLi3EEC2ERKfS3_S3_(ptr noundef nonnull align 4 dereferenceable(12) %66, ptr noundef nonnull align 4 dereferenceable(4) %67, ptr noundef nonnull align 4 dereferenceable(4) %68, ptr noundef nonnull align 4 dereferenceable(4) %69)
          to label %309 unwind label %378

309:                                              ; preds = %308
  call void @llvm.lifetime.end.p0(i64 4, ptr %69) #10
  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.start.p0(i64 12, ptr %70) #10
  call void @llvm.lifetime.start.p0(i64 4, ptr %71) #10
  %310 = load float, ptr %9, align 4, !tbaa !5
  %311 = load float, ptr %10, align 4, !tbaa !5
  %312 = load float, ptr %60, align 4, !tbaa !5
  %313 = invoke noundef float @_ZSt3cosf(float noundef %312)
          to label %314 unwind label %384

314:                                              ; preds = %309
  %315 = call float @llvm.fmuladd.f32(float %311, float %313, float %310)
  %316 = fneg float %315
  %317 = load float, ptr %61, align 4, !tbaa !5
  %318 = invoke noundef float @_ZSt3sinf(float noundef %317)
          to label %319 unwind label %384

319:                                              ; preds = %314
  %320 = fmul float %316, %318
  store float %320, ptr %71, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %72) #10
  %321 = load float, ptr %9, align 4, !tbaa !5
  %322 = load float, ptr %10, align 4, !tbaa !5
  %323 = load float, ptr %60, align 4, !tbaa !5
  %324 = invoke noundef float @_ZSt3cosf(float noundef %323)
          to label %325 unwind label %388

325:                                              ; preds = %319
  %326 = call float @llvm.fmuladd.f32(float %322, float %324, float %321)
  %327 = load float, ptr %61, align 4, !tbaa !5
  %328 = invoke noundef float @_ZSt3cosf(float noundef %327)
          to label %329 unwind label %388

329:                                              ; preds = %325
  %330 = fmul float %326, %328
  store float %330, ptr %72, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %73) #10
  store float 0.000000e+00, ptr %73, align 4, !tbaa !5
  invoke 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)
          to label %331 unwind label %392

331:                                              ; preds = %329
  call void @llvm.lifetime.end.p0(i64 4, ptr %73) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %72) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %71) #10
  call void @llvm.lifetime.start.p0(i64 12, ptr %74) #10
  call void @llvm.lifetime.start.p0(i64 12, ptr %75) #10
  %332 = invoke { <2 x float>, float } @_ZN3cgp5crossERKNS_14numarray_stackIfLi3EEES3_(ptr noundef nonnull align 4 dereferenceable(12) %70, ptr noundef nonnull align 4 dereferenceable(12) %66)
          to label %333 unwind label %398

333:                                              ; preds = %331
  store { <2 x float>, float } %332, ptr %76, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %75, ptr align 8 %76, i64 12, i1 false)
  %334 = invoke { <2 x float>, float } @_ZN3cgp9normalizeIfLi3EEENS_14numarray_stackIT_XT0_EEERKS3_(ptr noundef nonnull align 4 dereferenceable(12) %75)
          to label %335 unwind label %398

335:                                              ; preds = %333
  store { <2 x float>, float } %334, ptr %77, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %74, ptr align 8 %77, i64 12, i1 false)
  call void @llvm.lifetime.end.p0(i64 12, ptr %75) #10
  %336 = getelementptr inbounds %"struct.cgp::mesh", ptr %0, i32 0, i32 0
  call void @llvm.lifetime.start.p0(i64 12, ptr %78) #10
  call void @llvm.lifetime.start.p0(i64 12, ptr %79) #10
  %337 = invoke { <2 x float>, float } @_ZN3cgpmlERKNS_18rotation_transformERKNS_14numarray_stackIfLi3EEE(ptr noundef nonnull align 4 dereferenceable(16) %49, ptr noundef nonnull align 4 dereferenceable(12) %62)
          to label %338 unwind label %402

338:                                              ; preds = %335
  store { <2 x float>, float } %337, ptr %80, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %79, ptr align 8 %80, i64 12, i1 false)
  %339 = load ptr, ptr %11, align 8, !tbaa !9
  %340 = invoke { <2 x float>, float } @_ZN3cgpplERKNS_14numarray_stackIfLi3EEES3_(ptr noundef nonnull align 4 dereferenceable(12) %79, ptr noundef nonnull align 4 dereferenceable(12) %339)
          to label %341 unwind label %402

341:                                              ; preds = %338
  store { <2 x float>, float } %340, ptr %81, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %78, ptr align 8 %81, i64 12, i1 false)
  %342 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN3cgp8numarrayINS_14numarray_stackIfLi3EEEE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %336, ptr noundef nonnull align 4 dereferenceable(12) %78)
          to label %343 unwind label %402

343:                                              ; preds = %341
  call void @llvm.lifetime.end.p0(i64 12, ptr %79) #10
  call void @llvm.lifetime.end.p0(i64 12, ptr %78) #10
  %344 = getelementptr inbounds %"struct.cgp::mesh", ptr %0, i32 0, i32 1
  call void @llvm.lifetime.start.p0(i64 12, ptr %82) #10
  %345 = invoke { <2 x float>, float } @_ZN3cgpmlERKNS_18rotation_transformERKNS_14numarray_stackIfLi3EEE(ptr noundef nonnull align 4 dereferenceable(16) %49, ptr noundef nonnull align 4 dereferenceable(12) %74)
          to label %346 unwind label %406

346:                                              ; preds = %343
  store { <2 x float>, float } %345, ptr %83, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %82, ptr align 8 %83, i64 12, i1 false)
  %347 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN3cgp8numarrayINS_14numarray_stackIfLi3EEEE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %344, ptr noundef nonnull align 4 dereferenceable(12) %82)
          to label %348 unwind label %406

348:                                              ; preds = %346
  call void @llvm.lifetime.end.p0(i64 12, ptr %82) #10
  %349 = getelementptr inbounds %"struct.cgp::mesh", ptr %0, i32 0, i32 3
  call void @llvm.lifetime.start.p0(i64 8, ptr %84) #10
  invoke void @_ZN3cgp14numarray_stackIfLi2EEC2ERKfS3_(ptr noundef nonnull align 4 dereferenceable(8) %84, ptr noundef nonnull align 4 dereferenceable(4) %58, ptr noundef nonnull align 4 dereferenceable(4) %59)
          to label %350 unwind label %410

350:                                              ; preds = %348
  %351 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN3cgp8numarrayINS_14numarray_stackIfLi2EEEE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %349, ptr noundef nonnull align 4 dereferenceable(8) %84)
          to label %352 unwind label %410

352:                                              ; preds = %350
  call void @llvm.lifetime.end.p0(i64 8, ptr %84) #10
  call void @llvm.lifetime.end.p0(i64 12, ptr %74) #10
  call void @llvm.lifetime.end.p0(i64 12, ptr %70) #10
  call void @llvm.lifetime.end.p0(i64 12, ptr %66) #10
  call void @llvm.lifetime.end.p0(i64 12, 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 4, ptr %59) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %58) #10
  br label %353

353:                                              ; preds = %352
  %354 = load i64, ptr %57, align 8, !tbaa !13
  %355 = add i64 %354, 1
  store i64 %355, ptr %57, align 8, !tbaa !13
  br label %241, !llvm.loop !15

356:                                              ; preds = %268, %247
  %357 = landingpad { ptr, i32 }
          cleanup
  %358 = extractvalue { ptr, i32 } %357, 0
  store ptr %358, ptr %17, align 8
  %359 = extractvalue { ptr, i32 } %357, 1
  store i32 %359, ptr %18, align 4
  br label %369

360:                                              ; preds = %278, %272
  %361 = landingpad { ptr, i32 }
          cleanup
  %362 = extractvalue { ptr, i32 } %361, 0
  store ptr %362, ptr %17, align 8
  %363 = extractvalue { ptr, i32 } %361, 1
  store i32 %363, ptr %18, align 4
  br label %368

364:                                              ; preds = %287, %282
  %365 = landingpad { ptr, i32 }
          cleanup
  %366 = extractvalue { ptr, i32 } %365, 0
  store ptr %366, ptr %17, align 8
  %367 = extractvalue { ptr, i32 } %365, 1
  store i32 %367, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %65) #10
  br label %368

368:                                              ; preds = %364, %360
  call void @llvm.lifetime.end.p0(i64 4, ptr %64) #10
  br label %369

369:                                              ; preds = %368, %356
  call void @llvm.lifetime.end.p0(i64 4, ptr %63) #10
  br label %417

370:                                              ; preds = %292, %289
  %371 = landingpad { ptr, i32 }
          cleanup
  %372 = extractvalue { ptr, i32 } %371, 0
  store ptr %372, ptr %17, align 8
  %373 = extractvalue { ptr, i32 } %371, 1
  store i32 %373, ptr %18, align 4
  br label %383

374:                                              ; preds = %300, %296
  %375 = landingpad { ptr, i32 }
          cleanup
  %376 = extractvalue { ptr, i32 } %375, 0
  store ptr %376, ptr %17, align 8
  %377 = extractvalue { ptr, i32 } %375, 1
  store i32 %377, ptr %18, align 4
  br label %382

378:                                              ; preds = %308, %304
  %379 = landingpad { ptr, i32 }
          cleanup
  %380 = extractvalue { ptr, i32 } %379, 0
  store ptr %380, ptr %17, align 8
  %381 = extractvalue { ptr, i32 } %379, 1
  store i32 %381, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %69) #10
  br label %382

382:                                              ; preds = %378, %374
  call void @llvm.lifetime.end.p0(i64 4, ptr %68) #10
  br label %383

383:                                              ; preds = %382, %370
  call void @llvm.lifetime.end.p0(i64 4, ptr %67) #10
  br label %416

384:                                              ; preds = %314, %309
  %385 = landingpad { ptr, i32 }
          cleanup
  %386 = extractvalue { ptr, i32 } %385, 0
  store ptr %386, ptr %17, align 8
  %387 = extractvalue { ptr, i32 } %385, 1
  store i32 %387, ptr %18, align 4
  br label %397

388:                                              ; preds = %325, %319
  %389 = landingpad { ptr, i32 }
          cleanup
  %390 = extractvalue { ptr, i32 } %389, 0
  store ptr %390, ptr %17, align 8
  %391 = extractvalue { ptr, i32 } %389, 1
  store i32 %391, ptr %18, align 4
  br label %396

392:                                              ; preds = %329
  %393 = landingpad { ptr, i32 }
          cleanup
  %394 = extractvalue { ptr, i32 } %393, 0
  store ptr %394, ptr %17, align 8
  %395 = extractvalue { ptr, i32 } %393, 1
  store i32 %395, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %73) #10
  br label %396

396:                                              ; preds = %392, %388
  call void @llvm.lifetime.end.p0(i64 4, ptr %72) #10
  br label %397

397:                                              ; preds = %396, %384
  call void @llvm.lifetime.end.p0(i64 4, ptr %71) #10
  br label %415

398:                                              ; preds = %333, %331
  %399 = landingpad { ptr, i32 }
          cleanup
  %400 = extractvalue { ptr, i32 } %399, 0
  store ptr %400, ptr %17, align 8
  %401 = extractvalue { ptr, i32 } %399, 1
  store i32 %401, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 12, ptr %75) #10
  br label %414

402:                                              ; preds = %341, %338, %335
  %403 = landingpad { ptr, i32 }
          cleanup
  %404 = extractvalue { ptr, i32 } %403, 0
  store ptr %404, ptr %17, align 8
  %405 = extractvalue { ptr, i32 } %403, 1
  store i32 %405, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 12, ptr %79) #10
  call void @llvm.lifetime.end.p0(i64 12, ptr %78) #10
  br label %414

406:                                              ; preds = %346, %343
  %407 = landingpad { ptr, i32 }
          cleanup
  %408 = extractvalue { ptr, i32 } %407, 0
  store ptr %408, ptr %17, align 8
  %409 = extractvalue { ptr, i32 } %407, 1
  store i32 %409, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 12, ptr %82) #10
  br label %414

410:                                              ; preds = %350, %348
  %411 = landingpad { ptr, i32 }
          cleanup
  %412 = extractvalue { ptr, i32 } %411, 0
  store ptr %412, ptr %17, align 8
  %413 = extractvalue { ptr, i32 } %411, 1
  store i32 %413, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %84) #10
  br label %414

414:                                              ; preds = %410, %406, %402, %398
  call void @llvm.lifetime.end.p0(i64 12, ptr %74) #10
  br label %415

415:                                              ; preds = %414, %397
  call void @llvm.lifetime.end.p0(i64 12, ptr %70) #10
  br label %416

416:                                              ; preds = %415, %383
  call void @llvm.lifetime.end.p0(i64 12, ptr %66) #10
  br label %417

417:                                              ; preds = %416, %369
  call void @llvm.lifetime.end.p0(i64 12, 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 4, ptr %59) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %58) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %57) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %55) #10
  br label %445

418:                                              ; preds = %246
  br label %419

419:                                              ; preds = %418
  %420 = load i64, ptr %55, align 8, !tbaa !13
  %421 = add i64 %420, 1
  store i64 %421, ptr %55, align 8, !tbaa !13
  br label %234, !llvm.loop !17

422:                                              ; preds = %239
  call void @llvm.lifetime.start.p0(i64 24, ptr %85) #10
  %423 = load i32, ptr %13, align 4, !tbaa !11
  %424 = sext i32 %423 to i64
  %425 = load i32, ptr %14, align 4, !tbaa !11
  %426 = sext i32 %425 to i64
  invoke void @_ZN3cgpL17connectivity_gridEmm(ptr dead_on_unwind writable sret(%"struct.cgp::numarray.6") align 8 %85, i64 noundef %424, i64 noundef %426)
          to label %427 unwind label %435

427:                                              ; preds = %422
  %428 = getelementptr inbounds %"struct.cgp::mesh", ptr %0, i32 0, i32 4
  %429 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN3cgp8numarrayINS_14numarray_stackIjLi3EEEEaSEOS3_(ptr noundef nonnull align 8 dereferenceable(24) %428, ptr noundef nonnull align 8 dereferenceable(24) %85) #10
  call void @_ZN3cgp8numarrayINS_14numarray_stackIjLi3EEEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %85) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr %85) #10
  %430 = invoke noundef nonnull align 8 dereferenceable(120) ptr @_ZN3cgp4mesh16fill_empty_fieldEv(ptr noundef nonnull align 8 dereferenceable(120) %0)
          to label %431 unwind label %439

431:                                              ; preds = %427
  %432 = invoke noundef nonnull align 8 dereferenceable(120) ptr @_ZN3cgp4mesh17flip_connectivityEv(ptr noundef nonnull align 8 dereferenceable(120) %0)
          to label %433 unwind label %439

433:                                              ; preds = %431
  store i1 true, ptr %54, align 1
  store i32 1, ptr %56, align 4
  %434 = load i1, ptr %54, align 1
  br i1 %434, label %444, label %443

435:                                              ; preds = %422
  %436 = landingpad { ptr, i32 }
          cleanup
  %437 = extractvalue { ptr, i32 } %436, 0
  store ptr %437, ptr %17, align 8
  %438 = extractvalue { ptr, i32 } %436, 1
  store i32 %438, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 24, ptr %85) #10
  br label %445

439:                                              ; preds = %431, %427
  %440 = landingpad { ptr, i32 }
          cleanup
  %441 = extractvalue { ptr, i32 } %440, 0
  store ptr %441, ptr %17, align 8
  %442 = extractvalue { ptr, i32 } %440, 1
  store i32 %442, ptr %18, align 4
  br label %445

443:                                              ; preds = %433
  call void @_ZN3cgp4meshD2Ev(ptr noundef nonnull align 8 dereferenceable(120) %0) #10
  br label %444

444:                                              ; preds = %443, %433
  call void @llvm.lifetime.end.p0(i64 16, ptr %49) #10
  ret void

445:                                              ; preds = %439, %435, %417
  call void @_ZN3cgp4meshD2Ev(ptr noundef nonnull align 8 dereferenceable(120) %0) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr %49) #10
  br label %446

446:                                              ; preds = %445, %224, %189, %154, %119
  %447 = load ptr, ptr %17, align 8
  %448 = load i32, ptr %18, align 4
  %449 = insertvalue { ptr, i32 } poison, ptr %447, 0
  %450 = insertvalue { ptr, i32 } %449, i32 %448, 1
  resume { ptr, i32 } %450
}

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


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

@.str.2 = external hidden unnamed_addr constant [89 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [24 x i8], align 1
@__func__._ZN3cgp20mesh_primitive_torusEffRKNS_14numarray_stackIfLi3EEES3_ii = external hidden unnamed_addr constant [21 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [5 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 @_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: inlinehint mustprogress uwtable
declare dso_local { <2 x float>, float } @_ZN3cgp5crossERKNS_14numarray_stackIfLi3EEES3_(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #5

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3cgp20mesh_primitive_torusEffRKNS_14numarray_stackIfLi3EEES3_ii(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, i32 noundef %5, i32 noundef %6) local_unnamed_addr #7 personality ptr @__gxx_personality_v0 {
  %8 = alloca %"class.std::__cxx11::basic_string", align 8
  %9 = alloca %"class.std::allocator.12", align 1
  %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 %"struct.cgp::rotation_transform", align 8
  %41 = alloca %"struct.cgp::numarray_stack", align 4
  %42 = alloca i32, align 4
  %43 = alloca i32, align 4
  %44 = alloca i32, align 4
  %45 = alloca float, align 4
  %46 = alloca float, align 4
  %47 = alloca %"struct.cgp::numarray_stack", align 4
  %48 = alloca float, align 4
  %49 = alloca float, align 4
  %50 = alloca float, align 4
  %51 = alloca %"struct.cgp::numarray_stack", align 4
  %52 = alloca float, align 4
  %53 = alloca float, align 4
  %54 = alloca float, align 4
  %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", align 8
  %60 = alloca %"struct.cgp::numarray_stack", align 8
  %61 = alloca %"struct.cgp::numarray_stack", align 8
  %62 = alloca %"struct.cgp::numarray_stack", align 8
  %63 = alloca %"struct.cgp::numarray_stack", align 8
  %64 = alloca %"struct.cgp::numarray_stack.16", align 4
  %65 = alloca %"struct.cgp::numarray.6", align 8
  %66 = fcmp ule float %1, 0.000000e+00
  br i1 %66, label %67, label %87

67:                                               ; preds = %7
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %8) #9
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %9) #9
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %9) #9
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %8, ptr noundef nonnull @.str.17, ptr noundef nonnull align 1 dereferenceable(1) %9)
          to label %68 unwind label %73

68:                                               ; preds = %67
  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.18, ptr noundef nonnull align 1 dereferenceable(1) %11)
          to label %69 unwind label %75

69:                                               ; preds = %68
  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.2, ptr noundef nonnull align 1 dereferenceable(1) %13)
          to label %70 unwind label %77

70:                                               ; preds = %69
  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 @__func__._ZN3cgp20mesh_primitive_torusEffRKNS_14numarray_stackIfLi3EEES3_ii, ptr noundef nonnull align 1 dereferenceable(1) %15)
          to label %71 unwind label %79

71:                                               ; preds = %70
  invoke void @_ZN3cgp10call_errorERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES7_S7_S7_i(ptr noundef nonnull align 8 dereferenceable(32) %8, ptr noundef nonnull align 8 dereferenceable(32) %10, ptr noundef nonnull align 8 dereferenceable(32) %12, ptr noundef nonnull align 8 dereferenceable(32) %14, i32 noundef 278) #10
          to label %72 unwind label %81

72:                                               ; preds = %71
  unreachable

73:                                               ; preds = %67
  %74 = landingpad { ptr, i32 }
          cleanup
  br label %86

75:                                               ; preds = %68
  %76 = landingpad { ptr, i32 }
          cleanup
  br label %85

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

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

81:                                               ; preds = %71
  %82 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #9
  br label %83

83:                                               ; preds = %81, %79
  %.pn98 = phi { ptr, i32 } [ %82, %81 ], [ %80, %79 ]
  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 %84

84:                                               ; preds = %83, %77
  %.pn98.pn = phi { ptr, i32 } [ %.pn98, %83 ], [ %78, %77 ]
  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 %85

85:                                               ; preds = %84, %75
  %.pn98.pn.pn = phi { ptr, i32 } [ %.pn98.pn, %84 ], [ %76, %75 ]
  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
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #9
  br label %86

86:                                               ; preds = %85, %73
  %.pn98.pn.pn.pn = phi { ptr, i32 } [ %.pn98.pn.pn, %85 ], [ %74, %73 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %9) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %9) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #9
  br label %242

87:                                               ; preds = %7
  %88 = fcmp ule float %2, 0.000000e+00
  br i1 %88, label %89, label %109

89:                                               ; preds = %87
  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 @.str.19, ptr noundef nonnull align 1 dereferenceable(1) %17)
          to label %90 unwind label %95

90:                                               ; preds = %89
  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.18, ptr noundef nonnull align 1 dereferenceable(1) %19)
          to label %91 unwind label %97

91:                                               ; preds = %90
  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.2, ptr noundef nonnull align 1 dereferenceable(1) %21)
          to label %92 unwind label %99

92:                                               ; preds = %91
  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 @__func__._ZN3cgp20mesh_primitive_torusEffRKNS_14numarray_stackIfLi3EEES3_ii, ptr noundef nonnull align 1 dereferenceable(1) %23)
          to label %93 unwind label %101

93:                                               ; preds = %92
  invoke void @_ZN3cgp10call_errorERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES7_S7_S7_i(ptr noundef nonnull align 8 dereferenceable(32) %16, ptr noundef nonnull align 8 dereferenceable(32) %18, ptr noundef nonnull align 8 dereferenceable(32) %20, ptr noundef nonnull align 8 dereferenceable(32) %22, i32 noundef 279) #10
          to label %94 unwind label %103

94:                                               ; preds = %93
  unreachable

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

97:                                               ; preds = %90
  %98 = landingpad { ptr, i32 }
          cleanup
  br label %107

99:                                               ; preds = %91
  %100 = landingpad { ptr, i32 }
          cleanup
  br label %106

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

103:                                              ; preds = %93
  %104 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %22) #9
  br label %105

105:                                              ; preds = %103, %101
  %.pn93 = phi { ptr, i32 } [ %104, %103 ], [ %102, %101 ]
  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 %106

106:                                              ; preds = %105, %99
  %.pn93.pn = phi { ptr, i32 } [ %.pn93, %105 ], [ %100, %99 ]
  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 %107

107:                                              ; preds = %106, %97
  %.pn93.pn.pn = phi { ptr, i32 } [ %.pn93.pn, %106 ], [ %98, %97 ]
  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
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %16) #9
  br label %108

108:                                              ; preds = %107, %95
  %.pn93.pn.pn.pn = phi { ptr, i32 } [ %.pn93.pn.pn, %107 ], [ %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
  br label %242

109:                                              ; preds = %87
  %110 = icmp slt i32 %5, 3
  br i1 %110, label %111, label %131

111:                                              ; preds = %109
  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 @.str.20, ptr noundef nonnull align 1 dereferenceable(1) %25)
          to label %112 unwind label %117

112:                                              ; preds = %111
  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.21, ptr noundef nonnull align 1 dereferenceable(1) %27)
          to label %113 unwind label %119

113:                                              ; preds = %112
  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.2, ptr noundef nonnull align 1 dereferenceable(1) %29)
          to label %114 unwind label %121

114:                                              ; preds = %113
  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 @__func__._ZN3cgp20mesh_primitive_torusEffRKNS_14numarray_stackIfLi3EEES3_ii, ptr noundef nonnull align 1 dereferenceable(1) %31)
          to label %115 unwind label %123

115:                                              ; preds = %114
  invoke void @_ZN3cgp10call_errorERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES7_S7_S7_i(ptr noundef nonnull align 8 dereferenceable(32) %24, ptr noundef nonnull align 8 dereferenceable(32) %26, ptr noundef nonnull align 8 dereferenceable(32) %28, ptr noundef nonnull align 8 dereferenceable(32) %30, i32 noundef 280) #10
          to label %116 unwind label %125

116:                                              ; preds = %115
  unreachable

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

119:                                              ; preds = %112
  %120 = landingpad { ptr, i32 }
          cleanup
  br label %129

121:                                              ; preds = %113
  %122 = landingpad { ptr, i32 }
          cleanup
  br label %128

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

125:                                              ; preds = %115
  %126 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %30) #9
  br label %127

127:                                              ; preds = %125, %123
  %.pn88 = phi { ptr, i32 } [ %126, %125 ], [ %124, %123 ]
  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 %128

128:                                              ; preds = %127, %121
  %.pn88.pn = phi { ptr, i32 } [ %.pn88, %127 ], [ %122, %121 ]
  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 %129

129:                                              ; preds = %128, %119
  %.pn88.pn.pn = phi { ptr, i32 } [ %.pn88.pn, %128 ], [ %120, %119 ]
  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
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %24) #9
  br label %130

130:                                              ; preds = %129, %117
  %.pn88.pn.pn.pn = phi { ptr, i32 } [ %.pn88.pn.pn, %129 ], [ %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
  br label %242

131:                                              ; preds = %109
  %132 = icmp slt i32 %6, 3
  br i1 %132, label %133, label %153

133:                                              ; preds = %131
  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 @.str.22, ptr noundef nonnull align 1 dereferenceable(1) %33)
          to label %134 unwind label %139

134:                                              ; preds = %133
  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.21, ptr noundef nonnull align 1 dereferenceable(1) %35)
          to label %135 unwind label %141

135:                                              ; preds = %134
  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.2, ptr noundef nonnull align 1 dereferenceable(1) %37)
          to label %136 unwind label %143

136:                                              ; preds = %135
  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 @__func__._ZN3cgp20mesh_primitive_torusEffRKNS_14numarray_stackIfLi3EEES3_ii, ptr noundef nonnull align 1 dereferenceable(1) %39)
          to label %137 unwind label %145

137:                                              ; preds = %136
  invoke void @_ZN3cgp10call_errorERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES7_S7_S7_i(ptr noundef nonnull align 8 dereferenceable(32) %32, ptr noundef nonnull align 8 dereferenceable(32) %34, ptr noundef nonnull align 8 dereferenceable(32) %36, ptr noundef nonnull align 8 dereferenceable(32) %38, i32 noundef 281) #10
          to label %138 unwind label %147

138:                                              ; preds = %137
  unreachable

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

141:                                              ; preds = %134
  %142 = landingpad { ptr, i32 }
          cleanup
  br label %151

143:                                              ; preds = %135
  %144 = landingpad { ptr, i32 }
          cleanup
  br label %150

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

147:                                              ; preds = %137
  %148 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %38) #9
  br label %149

149:                                              ; preds = %147, %145
  %.pn83 = phi { ptr, i32 } [ %148, %147 ], [ %146, %145 ]
  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 %150

150:                                              ; preds = %149, %143
  %.pn83.pn = phi { ptr, i32 } [ %.pn83, %149 ], [ %144, %143 ]
  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 %151

151:                                              ; preds = %150, %141
  %.pn83.pn.pn = phi { ptr, i32 } [ %.pn83.pn, %150 ], [ %142, %141 ]
  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
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %32) #9
  br label %152

152:                                              ; preds = %151, %139
  %.pn83.pn.pn.pn = phi { ptr, i32 } [ %.pn83.pn.pn, %151 ], [ %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
  br label %242

153:                                              ; preds = %131
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %40) #9
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %41) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %42) #9
  store i32 0, ptr %42, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %43) #9
  store i32 0, ptr %43, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %44) #9
  store i32 1, ptr %44, align 4, !tbaa !5
  call void @_ZN3cgp14numarray_stackIfLi3EEC2IiiiEERKT_RKT0_RKT1_(ptr noundef nonnull align 4 dereferenceable(12) %41, ptr noundef nonnull align 4 dereferenceable(4) %42, ptr noundef nonnull align 4 dereferenceable(4) %43, ptr noundef nonnull align 4 dereferenceable(4) %44)
  %154 = call { <2 x float>, <2 x float> } @_ZN3cgp18rotation_transform21from_vector_transformERKNS_14numarray_stackIfLi3EEES4_(ptr noundef nonnull align 4 dereferenceable(12) %41, ptr noundef nonnull align 4 dereferenceable(12) %4)
  %155 = extractvalue { <2 x float>, <2 x float> } %154, 0
  store <2 x float> %155, ptr %40, align 8
  %156 = getelementptr inbounds i8, ptr %40, i64 8
  %157 = extractvalue { <2 x float>, <2 x float> } %154, 1
  store <2 x float> %157, ptr %156, align 8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %44) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %43) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %42) #9
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %41) #9
  call void @_ZN3cgp4meshC2Ev(ptr noundef nonnull align 8 dereferenceable(120) %0)
  %158 = zext nneg i32 %5 to i64
  %159 = zext nneg i32 %6 to i64
  %160 = uitofp nneg i32 %5 to float
  %161 = fadd float %160, -1.000000e+00
  %162 = uitofp nneg i32 %6 to float
  %163 = fadd float %162, -1.000000e+00
  %.sroa.216.0..sroa_idx = getelementptr inbounds i8, ptr %60, i64 8
  %.sroa.212.0..sroa_idx = getelementptr inbounds i8, ptr %59, i64 8
  %.sroa.28.0..sroa_idx = getelementptr inbounds i8, ptr %62, i64 8
  %.sroa.24.0..sroa_idx = getelementptr inbounds i8, ptr %61, i64 8
  %164 = getelementptr inbounds i8, ptr %0, i64 24
  %.sroa.2.0..sroa_idx = getelementptr inbounds i8, ptr %63, i64 8
  %165 = getelementptr inbounds i8, ptr %0, i64 72
  br label %.preheader

.preheader:                                       ; preds = %153, %170
  %.078109 = phi i64 [ 0, %153 ], [ %171, %170 ]
  %166 = uitofp nneg i64 %.078109 to float
  %167 = fdiv float %166, %161
  %168 = fmul float %167, 0x401921FA00000000
  br label %172

169:                                              ; preds = %170
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %65) #9
  invoke void @_ZN3cgpL17connectivity_gridEmm(ptr dead_on_unwind nonnull writable sret(%"struct.cgp::numarray.6") align 8 %65, i64 noundef %158, i64 noundef %159)
          to label %230 unwind label %236

170:                                              ; preds = %219
  %171 = add nuw nsw i64 %.078109, 1
  %exitcond110.not = icmp eq i64 %171, %158
  br i1 %exitcond110.not, label %169, label %.preheader, !llvm.loop !9

172:                                              ; preds = %.preheader, %219
  %.079108 = phi i64 [ 0, %.preheader ], [ %220, %219 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %45) #9
  store float %167, ptr %45, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %46) #9
  %173 = uitofp nneg i64 %.079108 to float
  %174 = fdiv float %173, %163
  store float %174, ptr %46, align 4, !tbaa !11
  %175 = fmul float %174, 0x401921FA00000000
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %47) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %48) #9
  %176 = call noundef float @_ZSt3cosf(float noundef %175)
  %177 = call float @llvm.fmuladd.f32(float %2, float %176, float %1)
  %178 = call noundef float @_ZSt3cosf(float noundef %168)
  %179 = fmul float %177, %178
  store float %179, ptr %48, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %49) #9
  %180 = call noundef float @_ZSt3cosf(float noundef %175)
  %181 = call float @llvm.fmuladd.f32(float %2, float %180, float %1)
  %182 = call noundef float @_ZSt3sinf(float noundef %168)
  %183 = fmul float %181, %182
  store float %183, ptr %49, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %50) #9
  %184 = call noundef float @_ZSt3sinf(float noundef %175)
  %185 = fmul float %184, %2
  store float %185, ptr %50, align 4, !tbaa !11
  call void @_ZN3cgp14numarray_stackIfLi3EEC2ERKfS3_S3_(ptr noundef nonnull align 4 dereferenceable(12) %47, ptr noundef nonnull align 4 dereferenceable(4) %48, ptr noundef nonnull align 4 dereferenceable(4) %49, ptr noundef nonnull align 4 dereferenceable(4) %50)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %50) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %49) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %48) #9
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %51) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %52) #9
  %186 = call noundef float @_ZSt3sinf(float noundef %175)
  %187 = fneg float %186
  %188 = call noundef float @_ZSt3cosf(float noundef %168)
  %189 = fmul float %188, %187
  store float %189, ptr %52, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %53) #9
  %190 = call noundef float @_ZSt3sinf(float noundef %175)
  %191 = fneg float %190
  %192 = call noundef float @_ZSt3sinf(float noundef %168)
  %193 = fmul float %192, %191
  store float %193, ptr %53, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %54) #9
  %194 = call noundef float @_ZSt3cosf(float noundef %175)
  store float %194, ptr %54, align 4, !tbaa !11
  call void @_ZN3cgp14numarray_stackIfLi3EEC2ERKfS3_S3_(ptr noundef nonnull align 4 dereferenceable(12) %51, ptr noundef nonnull align 4 dereferenceable(4) %52, ptr noundef nonnull align 4 dereferenceable(4) %53, ptr noundef nonnull align 4 dereferenceable(4) %54)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %54) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %53) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %52) #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
  %195 = call noundef float @_ZSt3cosf(float noundef %175)
  %196 = call float @llvm.fmuladd.f32(float %2, float %195, float %1)
  %197 = fneg float %196
  %198 = call noundef float @_ZSt3sinf(float noundef %168)
  %199 = fmul float %198, %197
  store float %199, ptr %56, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %57) #9
  %200 = call noundef float @_ZSt3cosf(float noundef %175)
  %201 = call float @llvm.fmuladd.f32(float %2, float %200, float %1)
  %202 = call noundef float @_ZSt3cosf(float noundef %168)
  %203 = fmul float %201, %202
  store float %203, ptr %57, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %58) #9
  store float 0.000000e+00, ptr %58, align 4, !tbaa !11
  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)
  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.start.p0(i64 12, ptr nonnull %59) #9
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %60) #9
  %204 = invoke { <2 x float>, float } @_ZN3cgp5crossERKNS_14numarray_stackIfLi3EEES3_(ptr noundef nonnull align 4 dereferenceable(12) %55, ptr noundef nonnull align 4 dereferenceable(12) %51)
          to label %205 unwind label %221

205:                                              ; preds = %172
  %.fca.0.extract13 = extractvalue { <2 x float>, float } %204, 0
  %.fca.1.extract14 = extractvalue { <2 x float>, float } %204, 1
  store <2 x float> %.fca.0.extract13, ptr %60, align 8
  store float %.fca.1.extract14, ptr %.sroa.216.0..sroa_idx, align 8
  %206 = invoke { <2 x float>, float } @_ZN3cgp9normalizeIfLi3EEENS_14numarray_stackIT_XT0_EEERKS3_(ptr noundef nonnull align 4 dereferenceable(12) %60)
          to label %207 unwind label %221

207:                                              ; preds = %205
  %.fca.0.extract9 = extractvalue { <2 x float>, float } %206, 0
  %.fca.1.extract10 = extractvalue { <2 x float>, float } %206, 1
  store <2 x float> %.fca.0.extract9, ptr %59, align 8
  store float %.fca.1.extract10, ptr %.sroa.212.0..sroa_idx, align 8
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %60) #9
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %61) #9
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %62) #9
  %208 = invoke { <2 x float>, float } @_ZN3cgpmlERKNS_18rotation_transformERKNS_14numarray_stackIfLi3EEE(ptr noundef nonnull align 4 dereferenceable(16) %40, ptr noundef nonnull align 4 dereferenceable(12) %47)
          to label %209 unwind label %223

209:                                              ; preds = %207
  %.fca.0.extract5 = extractvalue { <2 x float>, float } %208, 0
  %.fca.1.extract6 = extractvalue { <2 x float>, float } %208, 1
  store <2 x float> %.fca.0.extract5, ptr %62, align 8
  store float %.fca.1.extract6, ptr %.sroa.28.0..sroa_idx, align 8
  %210 = invoke { <2 x float>, float } @_ZN3cgpplERKNS_14numarray_stackIfLi3EEES3_(ptr noundef nonnull align 4 dereferenceable(12) %62, ptr noundef nonnull align 4 dereferenceable(12) %3)
          to label %211 unwind label %223

211:                                              ; preds = %209
  %.fca.0.extract1 = extractvalue { <2 x float>, float } %210, 0
  %.fca.1.extract2 = extractvalue { <2 x float>, float } %210, 1
  store <2 x float> %.fca.0.extract1, ptr %61, align 8
  store float %.fca.1.extract2, ptr %.sroa.24.0..sroa_idx, align 8
  %212 = 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) %61)
          to label %213 unwind label %223

213:                                              ; preds = %211
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %62) #9
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %61) #9
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %63) #9
  %214 = invoke { <2 x float>, float } @_ZN3cgpmlERKNS_18rotation_transformERKNS_14numarray_stackIfLi3EEE(ptr noundef nonnull align 4 dereferenceable(16) %40, ptr noundef nonnull align 4 dereferenceable(12) %59)
          to label %215 unwind label %225

215:                                              ; preds = %213
  %.fca.0.extract = extractvalue { <2 x float>, float } %214, 0
  %.fca.1.extract = extractvalue { <2 x float>, float } %214, 1
  store <2 x float> %.fca.0.extract, ptr %63, align 8
  store float %.fca.1.extract, ptr %.sroa.2.0..sroa_idx, align 8
  %216 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN3cgp8numarrayINS_14numarray_stackIfLi3EEEE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %164, ptr noundef nonnull align 4 dereferenceable(12) %63)
          to label %217 unwind label %225

217:                                              ; preds = %215
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %63) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %64) #9
  call void @_ZN3cgp14numarray_stackIfLi2EEC2ERKfS3_(ptr noundef nonnull align 4 dereferenceable(8) %64, ptr noundef nonnull align 4 dereferenceable(4) %45, ptr noundef nonnull align 4 dereferenceable(4) %46)
  %218 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN3cgp8numarrayINS_14numarray_stackIfLi2EEEE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %165, ptr noundef nonnull align 4 dereferenceable(8) %64)
          to label %219 unwind label %227

219:                                              ; preds = %217
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %64) #9
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %59) #9
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %55) #9
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %51) #9
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %47) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %46) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %45) #9
  %220 = add nuw nsw i64 %.079108, 1
  %exitcond.not = icmp eq i64 %220, %159
  br i1 %exitcond.not, label %170, label %172, !llvm.loop !13

221:                                              ; preds = %205, %172
  %222 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %60) #9
  br label %229

223:                                              ; preds = %211, %209, %207
  %224 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %62) #9
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %61) #9
  br label %229

225:                                              ; preds = %215, %213
  %226 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %63) #9
  br label %229

227:                                              ; preds = %217
  %228 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %64) #9
  br label %229

229:                                              ; preds = %227, %225, %223, %221
  %.pn = phi { ptr, i32 } [ %228, %227 ], [ %226, %225 ], [ %224, %223 ], [ %222, %221 ]
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %59) #9
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %55) #9
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %51) #9
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %47) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %46) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %45) #9
  br label %241

230:                                              ; preds = %169
  %231 = getelementptr inbounds i8, ptr %0, i64 96
  %232 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN3cgp8numarrayINS_14numarray_stackIjLi3EEEEaSEOS3_(ptr noundef nonnull align 8 dereferenceable(24) %231, ptr noundef nonnull align 8 dereferenceable(24) %65) #9
  call void @_ZN3cgp8numarrayINS_14numarray_stackIjLi3EEEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %65) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %65) #9
  %233 = invoke noundef nonnull align 8 dereferenceable(120) ptr @_ZN3cgp4mesh16fill_empty_fieldEv(ptr noundef nonnull align 8 dereferenceable(120) %0)
          to label %234 unwind label %238

234:                                              ; preds = %230
  %235 = invoke noundef nonnull align 8 dereferenceable(120) ptr @_ZN3cgp4mesh17flip_connectivityEv(ptr noundef nonnull align 8 dereferenceable(120) %0)
          to label %240 unwind label %238

236:                                              ; preds = %169
  %237 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %65) #9
  br label %241

238:                                              ; preds = %234, %230
  %239 = landingpad { ptr, i32 }
          cleanup
  br label %241

240:                                              ; preds = %234
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %40) #9
  ret void

241:                                              ; preds = %238, %236, %229
  %.pn.pn = phi { ptr, i32 } [ %.pn, %229 ], [ %239, %238 ], [ %237, %236 ]
  call void @_ZN3cgp4meshD2Ev(ptr noundef nonnull align 8 dereferenceable(120) %0) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %40) #9
  br label %242

242:                                              ; preds = %241, %152, %130, %108, %86
  %.pn98.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn98.pn.pn.pn, %86 ], [ %.pn93.pn.pn.pn, %108 ], [ %.pn88.pn.pn.pn, %130 ], [ %.pn83.pn.pn.pn, %152 ], [ %.pn.pn, %241 ]
  resume { ptr, i32 } %.pn98.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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{!12, !12, i64 0}
!12 = !{!"float", !7, i64 0}
!13 = distinct !{!13, !10}


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