; 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::numarray_stack" = type { float, float, float }
%"struct.cgp::numarray_stack.16" = type { float, float }
%"struct.cgp::numarray_stack.19" = type { i32, i32, i32 }

@.str.2 = external hidden unnamed_addr constant [89 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [28 x i8], align 1
@__func__._ZN3cgp21mesh_primitive_sphereEfRKNS_14numarray_stackIfLi3EEEii = external hidden unnamed_addr constant [22 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [29 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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3cgp21mesh_primitive_sphereEfRKNS_14numarray_stackIfLi3EEEii(ptr dead_on_unwind noalias writable sret(%"struct.cgp::mesh") align 8 %0, float noundef %1, ptr noundef nonnull align 4 dereferenceable(12) %2, i32 noundef %3, i32 noundef %4) #9 personality ptr @__gxx_personality_v0 {
  %6 = alloca ptr, align 8
  %7 = alloca float, align 4
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca %"class.std::__cxx11::basic_string", align 8
  %12 = alloca %"class.std::allocator.12", align 1
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  %15 = alloca %"class.std::__cxx11::basic_string", align 8
  %16 = alloca %"class.std::allocator.12", align 1
  %17 = alloca %"class.std::__cxx11::basic_string", align 8
  %18 = alloca %"class.std::allocator.12", align 1
  %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 i1, align 1
  %30 = alloca i64, align 8
  %31 = alloca i32, align 4
  %32 = alloca i64, align 8
  %33 = alloca float, align 4
  %34 = alloca float, align 4
  %35 = alloca float, align 4
  %36 = alloca float, align 4
  %37 = alloca float, align 4
  %38 = alloca %"struct.cgp::numarray_stack", align 4
  %39 = alloca float, align 4
  %40 = alloca float, align 4
  %41 = alloca float, align 4
  %42 = alloca %"struct.cgp::numarray_stack", align 4
  %43 = alloca %"struct.cgp::numarray_stack", align 4
  %44 = alloca { <2 x float>, float }, align 8
  %45 = alloca { <2 x float>, float }, align 8
  %46 = alloca %"struct.cgp::numarray_stack.16", align 4
  %47 = alloca %"struct.cgp::numarray.6", align 8
  %48 = alloca i64, align 8
  %49 = alloca %"struct.cgp::numarray_stack", align 4
  %50 = alloca %"struct.cgp::numarray_stack", align 4
  %51 = alloca %"struct.cgp::numarray_stack", align 4
  %52 = alloca i32, align 4
  %53 = alloca i32, align 4
  %54 = alloca float, align 4
  %55 = alloca { <2 x float>, float }, align 8
  %56 = alloca { <2 x float>, float }, align 8
  %57 = alloca %"struct.cgp::numarray_stack", align 4
  %58 = alloca i32, align 4
  %59 = alloca i32, align 4
  %60 = alloca float, align 4
  %61 = alloca %"struct.cgp::numarray_stack.16", align 4
  %62 = alloca float, align 4
  %63 = alloca float, align 4
  %64 = alloca i64, align 8
  %65 = alloca %"struct.cgp::numarray_stack.19", align 4
  %66 = alloca i64, align 8
  %67 = alloca i64, align 8
  %68 = alloca i64, align 8
  %69 = alloca i64, align 8
  %70 = alloca %"struct.cgp::numarray_stack", align 4
  %71 = alloca %"struct.cgp::numarray_stack", align 4
  %72 = alloca %"struct.cgp::numarray_stack", align 4
  %73 = alloca i32, align 4
  %74 = alloca i32, align 4
  %75 = alloca float, 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 i32, align 4
  %80 = alloca i32, align 4
  %81 = alloca float, align 4
  %82 = alloca %"struct.cgp::numarray_stack.16", align 4
  %83 = alloca float, align 4
  %84 = alloca float, align 4
  %85 = alloca i64, align 8
  %86 = alloca %"struct.cgp::numarray_stack.19", align 4
  %87 = alloca i64, align 8
  %88 = alloca i64, align 8
  %89 = alloca i64, align 8
  store ptr %0, ptr %6, align 8
  store float %1, ptr %7, align 4, !tbaa !5
  store ptr %2, ptr %8, align 8, !tbaa !9
  store i32 %3, ptr %9, align 4, !tbaa !11
  store i32 %4, ptr %10, align 4, !tbaa !11
  %90 = load float, ptr %7, align 4, !tbaa !5
  %91 = fcmp ogt float %90, 0.000000e+00
  %92 = zext i1 %91 to i32
  %93 = icmp eq i32 %92, 0
  br i1 %93, label %94, label %124

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

95:                                               ; preds = %94
  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.9, ptr noundef nonnull align 1 dereferenceable(1) %16)
          to label %96 unwind label %104

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

97:                                               ; preds = %96
  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 @__func__._ZN3cgp21mesh_primitive_sphereEfRKNS_14numarray_stackIfLi3EEEii, ptr noundef nonnull align 1 dereferenceable(1) %20)
          to label %98 unwind label %112

98:                                               ; preds = %97
  invoke void @_ZN3cgp10call_errorERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES7_S7_S7_i(ptr noundef nonnull align 8 dereferenceable(32) %11, ptr noundef nonnull align 8 dereferenceable(32) %15, ptr noundef nonnull align 8 dereferenceable(32) %17, ptr noundef nonnull align 8 dereferenceable(32) %19, i32 noundef 130) #11
          to label %99 unwind label %116

99:                                               ; preds = %98
  unreachable

100:                                              ; preds = %94
  %101 = landingpad { ptr, i32 }
          cleanup
  %102 = extractvalue { ptr, i32 } %101, 0
  store ptr %102, ptr %13, align 8
  %103 = extractvalue { ptr, i32 } %101, 1
  store i32 %103, ptr %14, align 4
  br label %123

104:                                              ; preds = %95
  %105 = landingpad { ptr, i32 }
          cleanup
  %106 = extractvalue { ptr, i32 } %105, 0
  store ptr %106, ptr %13, align 8
  %107 = extractvalue { ptr, i32 } %105, 1
  store i32 %107, ptr %14, align 4
  br label %122

108:                                              ; preds = %96
  %109 = landingpad { ptr, i32 }
          cleanup
  %110 = extractvalue { ptr, i32 } %109, 0
  store ptr %110, ptr %13, align 8
  %111 = extractvalue { ptr, i32 } %109, 1
  store i32 %111, ptr %14, align 4
  br label %121

112:                                              ; preds = %97
  %113 = landingpad { ptr, i32 }
          cleanup
  %114 = extractvalue { ptr, i32 } %113, 0
  store ptr %114, ptr %13, align 8
  %115 = extractvalue { ptr, i32 } %113, 1
  store i32 %115, ptr %14, align 4
  br label %120

116:                                              ; preds = %98
  %117 = landingpad { ptr, i32 }
          cleanup
  %118 = extractvalue { ptr, i32 } %117, 0
  store ptr %118, ptr %13, align 8
  %119 = extractvalue { ptr, i32 } %117, 1
  store i32 %119, ptr %14, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %19) #10
  br label %120

120:                                              ; preds = %116, %112
  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) %17) #10
  br label %121

121:                                              ; preds = %120, %108
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %18) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr %18) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr %17) #10
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #10
  br label %122

122:                                              ; preds = %121, %104
  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
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %11) #10
  br label %123

123:                                              ; preds = %122, %100
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr %12) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr %11) #10
  br label %480

124:                                              ; preds = %5
  %125 = load i32, ptr %9, align 4, !tbaa !11
  %126 = icmp sgt i32 %125, 2
  br i1 %126, label %127, label %130

127:                                              ; preds = %124
  %128 = load i32, ptr %10, align 4, !tbaa !11
  %129 = icmp sgt i32 %128, 2
  br label %130

130:                                              ; preds = %127, %124
  %131 = phi i1 [ false, %124 ], [ %129, %127 ]
  %132 = zext i1 %131 to i32
  %133 = icmp eq i32 %132, 0
  br i1 %133, label %134, label %164

134:                                              ; preds = %130
  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.10, ptr noundef nonnull align 1 dereferenceable(1) %22)
          to label %135 unwind label %140

135:                                              ; preds = %134
  call void @llvm.lifetime.start.p0(i64 32, ptr %23) #10
  call void @llvm.lifetime.start.p0(i64 1, ptr %24) #10
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %24) #10
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %23, ptr noundef @.str.11, ptr noundef nonnull align 1 dereferenceable(1) %24)
          to label %136 unwind label %144

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

137:                                              ; preds = %136
  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 @__func__._ZN3cgp21mesh_primitive_sphereEfRKNS_14numarray_stackIfLi3EEEii, ptr noundef nonnull align 1 dereferenceable(1) %28)
          to label %138 unwind label %152

138:                                              ; preds = %137
  invoke void @_ZN3cgp10call_errorERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES7_S7_S7_i(ptr noundef nonnull align 8 dereferenceable(32) %21, ptr noundef nonnull align 8 dereferenceable(32) %23, ptr noundef nonnull align 8 dereferenceable(32) %25, ptr noundef nonnull align 8 dereferenceable(32) %27, i32 noundef 131) #11
          to label %139 unwind label %156

139:                                              ; preds = %138
  unreachable

140:                                              ; preds = %134
  %141 = landingpad { ptr, i32 }
          cleanup
  %142 = extractvalue { ptr, i32 } %141, 0
  store ptr %142, ptr %13, align 8
  %143 = extractvalue { ptr, i32 } %141, 1
  store i32 %143, ptr %14, align 4
  br label %163

144:                                              ; preds = %135
  %145 = landingpad { ptr, i32 }
          cleanup
  %146 = extractvalue { ptr, i32 } %145, 0
  store ptr %146, ptr %13, align 8
  %147 = extractvalue { ptr, i32 } %145, 1
  store i32 %147, ptr %14, align 4
  br label %162

148:                                              ; preds = %136
  %149 = landingpad { ptr, i32 }
          cleanup
  %150 = extractvalue { ptr, i32 } %149, 0
  store ptr %150, ptr %13, align 8
  %151 = extractvalue { ptr, i32 } %149, 1
  store i32 %151, ptr %14, align 4
  br label %161

152:                                              ; preds = %137
  %153 = landingpad { ptr, i32 }
          cleanup
  %154 = extractvalue { ptr, i32 } %153, 0
  store ptr %154, ptr %13, align 8
  %155 = extractvalue { ptr, i32 } %153, 1
  store i32 %155, ptr %14, align 4
  br label %160

156:                                              ; preds = %138
  %157 = landingpad { ptr, i32 }
          cleanup
  %158 = extractvalue { ptr, i32 } %157, 0
  store ptr %158, ptr %13, align 8
  %159 = extractvalue { ptr, i32 } %157, 1
  store i32 %159, ptr %14, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %27) #10
  br label %160

160:                                              ; preds = %156, %152
  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 %161

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

162:                                              ; preds = %161, %144
  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 %163

163:                                              ; preds = %162, %140
  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
  br label %480

164:                                              ; preds = %130
  store i1 false, ptr %29, align 1
  call void @_ZN3cgp4meshC2Ev(ptr noundef nonnull align 8 dereferenceable(120) %0)
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #10
  store i64 0, ptr %30, align 8, !tbaa !13
  br label %165

165:                                              ; preds = %274, %164
  %166 = load i64, ptr %30, align 8, !tbaa !13
  %167 = load i32, ptr %9, align 4, !tbaa !11
  %168 = sext i32 %167 to i64
  %169 = icmp ult i64 %166, %168
  br i1 %169, label %171, label %170

170:                                              ; preds = %165
  store i32 2, ptr %31, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #10
  br label %277

171:                                              ; preds = %165
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #10
  store i64 0, ptr %32, align 8, !tbaa !13
  br label %172

172:                                              ; preds = %246, %171
  %173 = load i64, ptr %32, align 8, !tbaa !13
  %174 = load i32, ptr %10, align 4, !tbaa !11
  %175 = sext i32 %174 to i64
  %176 = icmp ult i64 %173, %175
  br i1 %176, label %178, label %177

177:                                              ; preds = %172
  store i32 5, ptr %31, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #10
  br label %273

178:                                              ; preds = %172
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #10
  %179 = load i64, ptr %30, align 8, !tbaa !13
  %180 = uitofp i64 %179 to float
  %181 = load i32, ptr %9, align 4, !tbaa !11
  %182 = sitofp i32 %181 to float
  %183 = fsub float %182, 1.000000e+00
  %184 = fdiv float %180, %183
  store float %184, ptr %33, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %34) #10
  %185 = load i64, ptr %32, align 8, !tbaa !13
  %186 = uitofp i64 %185 to float
  %187 = load i32, ptr %10, align 4, !tbaa !11
  %188 = sitofp i32 %187 to float
  %189 = fsub float %188, 1.000000e+00
  %190 = fdiv float %186, %189
  store float %190, ptr %34, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %35) #10
  %191 = load i32, ptr %10, align 4, !tbaa !11
  %192 = sitofp i32 %191 to float
  %193 = fadd float %192, 1.000000e+00
  %194 = fdiv float 1.000000e+00, %193
  %195 = load float, ptr %34, align 4, !tbaa !5
  %196 = fsub float 1.000000e+00, %195
  %197 = load float, ptr %34, align 4, !tbaa !5
  %198 = load i32, ptr %10, align 4, !tbaa !11
  %199 = sitofp i32 %198 to float
  %200 = fmul float %197, %199
  %201 = load i32, ptr %10, align 4, !tbaa !11
  %202 = sitofp i32 %201 to float
  %203 = fadd float %202, 1.000000e+00
  %204 = fdiv float %200, %203
  %205 = call float @llvm.fmuladd.f32(float %194, float %196, float %204)
  store float %205, ptr %35, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %36) #10
  %206 = load float, ptr %33, align 4, !tbaa !5
  %207 = fsub float %206, 5.000000e-01
  %208 = fmul float 0x401921FA00000000, %207
  store float %208, ptr %36, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %37) #10
  %209 = load float, ptr %35, align 4, !tbaa !5
  %210 = fsub float %209, 5.000000e-01
  %211 = fmul float 0x400921FA00000000, %210
  store float %211, ptr %37, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 12, ptr %38) #10
  call void @llvm.lifetime.start.p0(i64 4, ptr %39) #10
  %212 = load float, ptr %37, align 4, !tbaa !5
  %213 = invoke noundef float @_ZSt3cosf(float noundef %212)
          to label %214 unwind label %249

214:                                              ; preds = %178
  %215 = load float, ptr %36, align 4, !tbaa !5
  %216 = invoke noundef float @_ZSt3cosf(float noundef %215)
          to label %217 unwind label %249

217:                                              ; preds = %214
  %218 = fmul float %213, %216
  store float %218, ptr %39, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %40) #10
  %219 = load float, ptr %37, align 4, !tbaa !5
  %220 = invoke noundef float @_ZSt3cosf(float noundef %219)
          to label %221 unwind label %253

221:                                              ; preds = %217
  %222 = load float, ptr %36, align 4, !tbaa !5
  %223 = invoke noundef float @_ZSt3sinf(float noundef %222)
          to label %224 unwind label %253

224:                                              ; preds = %221
  %225 = fmul float %220, %223
  store float %225, ptr %40, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %41) #10
  %226 = load float, ptr %37, align 4, !tbaa !5
  %227 = invoke noundef float @_ZSt3sinf(float noundef %226)
          to label %228 unwind label %257

228:                                              ; preds = %224
  store float %227, ptr %41, align 4, !tbaa !5
  invoke void @_ZN3cgp14numarray_stackIfLi3EEC2ERKfS3_S3_(ptr noundef nonnull align 4 dereferenceable(12) %38, ptr noundef nonnull align 4 dereferenceable(4) %39, ptr noundef nonnull align 4 dereferenceable(4) %40, ptr noundef nonnull align 4 dereferenceable(4) %41)
          to label %229 unwind label %257

229:                                              ; preds = %228
  call void @llvm.lifetime.end.p0(i64 4, ptr %41) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %40) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %39) #10
  call void @llvm.lifetime.start.p0(i64 12, ptr %42) #10
  call void @llvm.lifetime.start.p0(i64 12, ptr %43) #10
  %230 = load float, ptr %7, align 4, !tbaa !5
  %231 = invoke { <2 x float>, float } @_ZN3cgpmlEfRKNS_14numarray_stackIfLi3EEE(float noundef %230, ptr noundef nonnull align 4 dereferenceable(12) %38)
          to label %232 unwind label %263

232:                                              ; preds = %229
  store { <2 x float>, float } %231, ptr %44, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %43, ptr align 8 %44, i64 12, i1 false)
  %233 = load ptr, ptr %8, align 8, !tbaa !9
  %234 = invoke { <2 x float>, float } @_ZN3cgpplERKNS_14numarray_stackIfLi3EEES3_(ptr noundef nonnull align 4 dereferenceable(12) %43, ptr noundef nonnull align 4 dereferenceable(12) %233)
          to label %235 unwind label %263

235:                                              ; preds = %232
  store { <2 x float>, float } %234, ptr %45, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %42, ptr align 8 %45, i64 12, i1 false)
  call void @llvm.lifetime.end.p0(i64 12, ptr %43) #10
  call void @llvm.lifetime.start.p0(i64 8, ptr %46) #10
  invoke void @_ZN3cgp14numarray_stackIfLi2EEC2ERKfS3_(ptr noundef nonnull align 4 dereferenceable(8) %46, ptr noundef nonnull align 4 dereferenceable(4) %33, ptr noundef nonnull align 4 dereferenceable(4) %35)
          to label %236 unwind label %267

236:                                              ; preds = %235
  %237 = getelementptr inbounds %"struct.cgp::mesh", ptr %0, i32 0, i32 0
  %238 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN3cgp8numarrayINS_14numarray_stackIfLi3EEEE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %237, ptr noundef nonnull align 4 dereferenceable(12) %42)
          to label %239 unwind label %267

239:                                              ; preds = %236
  %240 = getelementptr inbounds %"struct.cgp::mesh", ptr %0, i32 0, i32 1
  %241 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN3cgp8numarrayINS_14numarray_stackIfLi3EEEE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %240, ptr noundef nonnull align 4 dereferenceable(12) %38)
          to label %242 unwind label %267

242:                                              ; preds = %239
  %243 = getelementptr inbounds %"struct.cgp::mesh", ptr %0, i32 0, i32 3
  %244 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN3cgp8numarrayINS_14numarray_stackIfLi2EEEE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %243, ptr noundef nonnull align 4 dereferenceable(8) %46)
          to label %245 unwind label %267

245:                                              ; preds = %242
  call void @llvm.lifetime.end.p0(i64 8, ptr %46) #10
  call void @llvm.lifetime.end.p0(i64 12, ptr %42) #10
  call void @llvm.lifetime.end.p0(i64 12, ptr %38) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %37) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #10
  br label %246

246:                                              ; preds = %245
  %247 = load i64, ptr %32, align 8, !tbaa !13
  %248 = add i64 %247, 1
  store i64 %248, ptr %32, align 8, !tbaa !13
  br label %172, !llvm.loop !15

249:                                              ; preds = %214, %178
  %250 = landingpad { ptr, i32 }
          cleanup
  %251 = extractvalue { ptr, i32 } %250, 0
  store ptr %251, ptr %13, align 8
  %252 = extractvalue { ptr, i32 } %250, 1
  store i32 %252, ptr %14, align 4
  br label %262

253:                                              ; preds = %221, %217
  %254 = landingpad { ptr, i32 }
          cleanup
  %255 = extractvalue { ptr, i32 } %254, 0
  store ptr %255, ptr %13, align 8
  %256 = extractvalue { ptr, i32 } %254, 1
  store i32 %256, ptr %14, align 4
  br label %261

257:                                              ; preds = %228, %224
  %258 = landingpad { ptr, i32 }
          cleanup
  %259 = extractvalue { ptr, i32 } %258, 0
  store ptr %259, ptr %13, align 8
  %260 = extractvalue { ptr, i32 } %258, 1
  store i32 %260, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %41) #10
  br label %261

261:                                              ; preds = %257, %253
  call void @llvm.lifetime.end.p0(i64 4, ptr %40) #10
  br label %262

262:                                              ; preds = %261, %249
  call void @llvm.lifetime.end.p0(i64 4, ptr %39) #10
  br label %272

263:                                              ; preds = %232, %229
  %264 = landingpad { ptr, i32 }
          cleanup
  %265 = extractvalue { ptr, i32 } %264, 0
  store ptr %265, ptr %13, align 8
  %266 = extractvalue { ptr, i32 } %264, 1
  store i32 %266, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 12, ptr %43) #10
  br label %271

267:                                              ; preds = %242, %239, %236, %235
  %268 = landingpad { ptr, i32 }
          cleanup
  %269 = extractvalue { ptr, i32 } %268, 0
  store ptr %269, ptr %13, align 8
  %270 = extractvalue { ptr, i32 } %268, 1
  store i32 %270, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %46) #10
  br label %271

271:                                              ; preds = %267, %263
  call void @llvm.lifetime.end.p0(i64 12, ptr %42) #10
  br label %272

272:                                              ; preds = %271, %262
  call void @llvm.lifetime.end.p0(i64 12, ptr %38) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %37) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #10
  br label %479

273:                                              ; preds = %177
  br label %274

274:                                              ; preds = %273
  %275 = load i64, ptr %30, align 8, !tbaa !13
  %276 = add i64 %275, 1
  store i64 %276, ptr %30, align 8, !tbaa !13
  br label %165, !llvm.loop !17

277:                                              ; preds = %170
  call void @llvm.lifetime.start.p0(i64 24, ptr %47) #10
  %278 = load i32, ptr %9, align 4, !tbaa !11
  %279 = sext i32 %278 to i64
  %280 = load i32, ptr %10, align 4, !tbaa !11
  %281 = sext i32 %280 to i64
  invoke void @_ZN3cgpL17connectivity_gridEmm(ptr dead_on_unwind writable sret(%"struct.cgp::numarray.6") align 8 %47, i64 noundef %279, i64 noundef %281)
          to label %282 unwind label %292

282:                                              ; preds = %277
  %283 = getelementptr inbounds %"struct.cgp::mesh", ptr %0, i32 0, i32 4
  %284 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN3cgp8numarrayINS_14numarray_stackIjLi3EEEEaSEOS3_(ptr noundef nonnull align 8 dereferenceable(24) %283, ptr noundef nonnull align 8 dereferenceable(24) %47) #10
  call void @_ZN3cgp8numarrayINS_14numarray_stackIjLi3EEEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %47) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr %47) #10
  call void @llvm.lifetime.start.p0(i64 8, ptr %48) #10
  store i64 0, ptr %48, align 8, !tbaa !13
  br label %285

285:                                              ; preds = %321, %282
  %286 = load i64, ptr %48, align 8, !tbaa !13
  %287 = load i32, ptr %9, align 4, !tbaa !11
  %288 = sub nsw i32 %287, 1
  %289 = sext i32 %288 to i64
  %290 = icmp ult i64 %286, %289
  br i1 %290, label %296, label %291

291:                                              ; preds = %285
  store i32 8, ptr %31, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %48) #10
  br label %337

292:                                              ; preds = %277
  %293 = landingpad { ptr, i32 }
          cleanup
  %294 = extractvalue { ptr, i32 } %293, 0
  store ptr %294, ptr %13, align 8
  %295 = extractvalue { ptr, i32 } %293, 1
  store i32 %295, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 24, ptr %47) #10
  br label %479

296:                                              ; preds = %285
  %297 = getelementptr inbounds %"struct.cgp::mesh", ptr %0, i32 0, i32 0
  call void @llvm.lifetime.start.p0(i64 12, ptr %49) #10
  %298 = load ptr, ptr %8, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 12, ptr %50) #10
  %299 = load float, ptr %7, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 12, ptr %51) #10
  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 0, ptr %53, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %54) #10
  store float -1.000000e+00, ptr %54, align 4, !tbaa !5
  invoke void @_ZN3cgp14numarray_stackIfLi3EEC2IiifEERKT_RKT0_RKT1_(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)
          to label %300 unwind label %324

300:                                              ; preds = %296
  %301 = invoke { <2 x float>, float } @_ZN3cgpmlEfRKNS_14numarray_stackIfLi3EEE(float noundef %299, ptr noundef nonnull align 4 dereferenceable(12) %51)
          to label %302 unwind label %324

302:                                              ; preds = %300
  store { <2 x float>, float } %301, ptr %55, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %50, ptr align 8 %55, i64 12, i1 false)
  %303 = invoke { <2 x float>, float } @_ZN3cgpplERKNS_14numarray_stackIfLi3EEES3_(ptr noundef nonnull align 4 dereferenceable(12) %298, ptr noundef nonnull align 4 dereferenceable(12) %50)
          to label %304 unwind label %324

304:                                              ; preds = %302
  store { <2 x float>, float } %303, ptr %56, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %49, ptr align 8 %56, i64 12, i1 false)
  %305 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN3cgp8numarrayINS_14numarray_stackIfLi3EEEE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %297, ptr noundef nonnull align 4 dereferenceable(12) %49)
          to label %306 unwind label %324

306:                                              ; preds = %304
  call void @llvm.lifetime.end.p0(i64 4, ptr %54) #10
  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 12, ptr %51) #10
  call void @llvm.lifetime.end.p0(i64 12, ptr %50) #10
  call void @llvm.lifetime.end.p0(i64 12, ptr %49) #10
  %307 = getelementptr inbounds %"struct.cgp::mesh", ptr %0, i32 0, i32 1
  call void @llvm.lifetime.start.p0(i64 12, ptr %57) #10
  call void @llvm.lifetime.start.p0(i64 4, ptr %58) #10
  store i32 0, ptr %58, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %59) #10
  store i32 0, ptr %59, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %60) #10
  store float -1.000000e+00, ptr %60, align 4, !tbaa !5
  invoke void @_ZN3cgp14numarray_stackIfLi3EEC2IiifEERKT_RKT0_RKT1_(ptr noundef nonnull align 4 dereferenceable(12) %57, ptr noundef nonnull align 4 dereferenceable(4) %58, ptr noundef nonnull align 4 dereferenceable(4) %59, ptr noundef nonnull align 4 dereferenceable(4) %60)
          to label %308 unwind label %328

308:                                              ; preds = %306
  %309 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN3cgp8numarrayINS_14numarray_stackIfLi3EEEE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %307, ptr noundef nonnull align 4 dereferenceable(12) %57)
          to label %310 unwind label %328

310:                                              ; preds = %308
  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 12, ptr %57) #10
  %311 = getelementptr inbounds %"struct.cgp::mesh", ptr %0, i32 0, i32 3
  call void @llvm.lifetime.start.p0(i64 8, ptr %61) #10
  call void @llvm.lifetime.start.p0(i64 4, ptr %62) #10
  %312 = load i64, ptr %48, align 8, !tbaa !13
  %313 = uitofp i64 %312 to float
  %314 = load i32, ptr %9, align 4, !tbaa !11
  %315 = sitofp i32 %314 to float
  %316 = fsub float %315, 1.000000e+00
  %317 = fdiv float %313, %316
  store float %317, ptr %62, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %63) #10
  store float 0.000000e+00, ptr %63, align 4, !tbaa !5
  invoke void @_ZN3cgp14numarray_stackIfLi2EEC2ERKfS3_(ptr noundef nonnull align 4 dereferenceable(8) %61, ptr noundef nonnull align 4 dereferenceable(4) %62, ptr noundef nonnull align 4 dereferenceable(4) %63)
          to label %318 unwind label %332

318:                                              ; preds = %310
  %319 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN3cgp8numarrayINS_14numarray_stackIfLi2EEEE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %311, ptr noundef nonnull align 4 dereferenceable(8) %61)
          to label %320 unwind label %332

320:                                              ; preds = %318
  call void @llvm.lifetime.end.p0(i64 4, ptr %63) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %62) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %61) #10
  br label %321

321:                                              ; preds = %320
  %322 = load i64, ptr %48, align 8, !tbaa !13
  %323 = add i64 %322, 1
  store i64 %323, ptr %48, align 8, !tbaa !13
  br label %285, !llvm.loop !18

324:                                              ; preds = %304, %302, %300, %296
  %325 = landingpad { ptr, i32 }
          cleanup
  %326 = extractvalue { ptr, i32 } %325, 0
  store ptr %326, ptr %13, align 8
  %327 = extractvalue { ptr, i32 } %325, 1
  store i32 %327, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %54) #10
  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 12, ptr %51) #10
  call void @llvm.lifetime.end.p0(i64 12, ptr %50) #10
  call void @llvm.lifetime.end.p0(i64 12, ptr %49) #10
  br label %336

328:                                              ; preds = %308, %306
  %329 = landingpad { ptr, i32 }
          cleanup
  %330 = extractvalue { ptr, i32 } %329, 0
  store ptr %330, ptr %13, align 8
  %331 = extractvalue { ptr, i32 } %329, 1
  store i32 %331, ptr %14, align 4
  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 12, ptr %57) #10
  br label %336

332:                                              ; preds = %318, %310
  %333 = landingpad { ptr, i32 }
          cleanup
  %334 = extractvalue { ptr, i32 } %333, 0
  store ptr %334, ptr %13, align 8
  %335 = extractvalue { ptr, i32 } %333, 1
  store i32 %335, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %63) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %62) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %61) #10
  br label %336

336:                                              ; preds = %332, %328, %324
  call void @llvm.lifetime.end.p0(i64 8, ptr %48) #10
  br label %479

337:                                              ; preds = %291
  call void @llvm.lifetime.start.p0(i64 8, ptr %64) #10
  store i64 0, ptr %64, align 8, !tbaa !13
  br label %338

338:                                              ; preds = %365, %337
  %339 = load i64, ptr %64, align 8, !tbaa !13
  %340 = load i32, ptr %9, align 4, !tbaa !11
  %341 = sub nsw i32 %340, 1
  %342 = sext i32 %341 to i64
  %343 = icmp ult i64 %339, %342
  br i1 %343, label %345, label %344

344:                                              ; preds = %338
  store i32 11, ptr %31, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %64) #10
  br label %372

345:                                              ; preds = %338
  %346 = getelementptr inbounds %"struct.cgp::mesh", ptr %0, i32 0, i32 4
  call void @llvm.lifetime.start.p0(i64 12, ptr %65) #10
  call void @llvm.lifetime.start.p0(i64 8, ptr %66) #10
  %347 = load i32, ptr %9, align 4, !tbaa !11
  %348 = load i32, ptr %10, align 4, !tbaa !11
  %349 = mul nsw i32 %347, %348
  %350 = sext i32 %349 to i64
  %351 = load i64, ptr %64, align 8, !tbaa !13
  %352 = add i64 %350, %351
  store i64 %352, ptr %66, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %67) #10
  %353 = load i32, ptr %10, align 4, !tbaa !11
  %354 = sext i32 %353 to i64
  %355 = load i64, ptr %64, align 8, !tbaa !13
  %356 = mul i64 %354, %355
  store i64 %356, ptr %67, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %68) #10
  %357 = load i32, ptr %10, align 4, !tbaa !11
  %358 = sext i32 %357 to i64
  %359 = load i64, ptr %64, align 8, !tbaa !13
  %360 = add i64 %359, 1
  %361 = mul i64 %358, %360
  store i64 %361, ptr %68, align 8, !tbaa !13
  invoke void @_ZN3cgp14numarray_stackIjLi3EEC2ImmmEERKT_RKT0_RKT1_(ptr noundef nonnull align 4 dereferenceable(12) %65, ptr noundef nonnull align 8 dereferenceable(8) %66, ptr noundef nonnull align 8 dereferenceable(8) %67, ptr noundef nonnull align 8 dereferenceable(8) %68)
          to label %362 unwind label %368

362:                                              ; preds = %345
  %363 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN3cgp8numarrayINS_14numarray_stackIjLi3EEEE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %346, ptr noundef nonnull align 4 dereferenceable(12) %65)
          to label %364 unwind label %368

364:                                              ; preds = %362
  call void @llvm.lifetime.end.p0(i64 8, ptr %68) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %67) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %66) #10
  call void @llvm.lifetime.end.p0(i64 12, ptr %65) #10
  br label %365

365:                                              ; preds = %364
  %366 = load i64, ptr %64, align 8, !tbaa !13
  %367 = add i64 %366, 1
  store i64 %367, ptr %64, align 8, !tbaa !13
  br label %338, !llvm.loop !19

368:                                              ; preds = %362, %345
  %369 = landingpad { ptr, i32 }
          cleanup
  %370 = extractvalue { ptr, i32 } %369, 0
  store ptr %370, ptr %13, align 8
  %371 = extractvalue { ptr, i32 } %369, 1
  store i32 %371, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %68) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %67) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %66) #10
  call void @llvm.lifetime.end.p0(i64 12, ptr %65) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %64) #10
  br label %479

372:                                              ; preds = %344
  call void @llvm.lifetime.start.p0(i64 8, ptr %69) #10
  store i64 0, ptr %69, align 8, !tbaa !13
  br label %373

373:                                              ; preds = %405, %372
  %374 = load i64, ptr %69, align 8, !tbaa !13
  %375 = load i32, ptr %9, align 4, !tbaa !11
  %376 = sub nsw i32 %375, 1
  %377 = sext i32 %376 to i64
  %378 = icmp ult i64 %374, %377
  br i1 %378, label %380, label %379

379:                                              ; preds = %373
  store i32 14, ptr %31, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %69) #10
  br label %421

380:                                              ; preds = %373
  %381 = getelementptr inbounds %"struct.cgp::mesh", ptr %0, i32 0, i32 0
  call void @llvm.lifetime.start.p0(i64 12, ptr %70) #10
  %382 = load ptr, ptr %8, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 12, ptr %71) #10
  %383 = load float, ptr %7, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 12, ptr %72) #10
  call void @llvm.lifetime.start.p0(i64 4, ptr %73) #10
  store i32 0, ptr %73, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %74) #10
  store i32 0, ptr %74, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %75) #10
  store float 1.000000e+00, ptr %75, align 4, !tbaa !5
  invoke void @_ZN3cgp14numarray_stackIfLi3EEC2IiifEERKT_RKT0_RKT1_(ptr noundef nonnull align 4 dereferenceable(12) %72, ptr noundef nonnull align 4 dereferenceable(4) %73, ptr noundef nonnull align 4 dereferenceable(4) %74, ptr noundef nonnull align 4 dereferenceable(4) %75)
          to label %384 unwind label %408

384:                                              ; preds = %380
  %385 = invoke { <2 x float>, float } @_ZN3cgpmlEfRKNS_14numarray_stackIfLi3EEE(float noundef %383, ptr noundef nonnull align 4 dereferenceable(12) %72)
          to label %386 unwind label %408

386:                                              ; preds = %384
  store { <2 x float>, float } %385, ptr %76, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %71, ptr align 8 %76, i64 12, i1 false)
  %387 = invoke { <2 x float>, float } @_ZN3cgpplERKNS_14numarray_stackIfLi3EEES3_(ptr noundef nonnull align 4 dereferenceable(12) %382, ptr noundef nonnull align 4 dereferenceable(12) %71)
          to label %388 unwind label %408

388:                                              ; preds = %386
  store { <2 x float>, float } %387, ptr %77, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %70, ptr align 8 %77, i64 12, i1 false)
  %389 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN3cgp8numarrayINS_14numarray_stackIfLi3EEEE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %381, ptr noundef nonnull align 4 dereferenceable(12) %70)
          to label %390 unwind label %408

390:                                              ; preds = %388
  call void @llvm.lifetime.end.p0(i64 4, ptr %75) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %74) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %73) #10
  call void @llvm.lifetime.end.p0(i64 12, ptr %72) #10
  call void @llvm.lifetime.end.p0(i64 12, ptr %71) #10
  call void @llvm.lifetime.end.p0(i64 12, ptr %70) #10
  %391 = getelementptr inbounds %"struct.cgp::mesh", ptr %0, i32 0, i32 1
  call void @llvm.lifetime.start.p0(i64 12, ptr %78) #10
  call void @llvm.lifetime.start.p0(i64 4, ptr %79) #10
  store i32 0, ptr %79, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %80) #10
  store i32 0, ptr %80, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %81) #10
  store float 1.000000e+00, ptr %81, align 4, !tbaa !5
  invoke void @_ZN3cgp14numarray_stackIfLi3EEC2IiifEERKT_RKT0_RKT1_(ptr noundef nonnull align 4 dereferenceable(12) %78, ptr noundef nonnull align 4 dereferenceable(4) %79, ptr noundef nonnull align 4 dereferenceable(4) %80, ptr noundef nonnull align 4 dereferenceable(4) %81)
          to label %392 unwind label %412

392:                                              ; preds = %390
  %393 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN3cgp8numarrayINS_14numarray_stackIfLi3EEEE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %391, ptr noundef nonnull align 4 dereferenceable(12) %78)
          to label %394 unwind label %412

394:                                              ; preds = %392
  call void @llvm.lifetime.end.p0(i64 4, ptr %81) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %80) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %79) #10
  call void @llvm.lifetime.end.p0(i64 12, ptr %78) #10
  %395 = getelementptr inbounds %"struct.cgp::mesh", ptr %0, i32 0, i32 3
  call void @llvm.lifetime.start.p0(i64 8, ptr %82) #10
  call void @llvm.lifetime.start.p0(i64 4, ptr %83) #10
  %396 = load i64, ptr %69, align 8, !tbaa !13
  %397 = uitofp i64 %396 to float
  %398 = load i32, ptr %9, align 4, !tbaa !11
  %399 = sitofp i32 %398 to float
  %400 = fsub float %399, 1.000000e+00
  %401 = fdiv float %397, %400
  store float %401, ptr %83, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %84) #10
  store float 1.000000e+00, ptr %84, align 4, !tbaa !5
  invoke void @_ZN3cgp14numarray_stackIfLi2EEC2ERKfS3_(ptr noundef nonnull align 4 dereferenceable(8) %82, ptr noundef nonnull align 4 dereferenceable(4) %83, ptr noundef nonnull align 4 dereferenceable(4) %84)
          to label %402 unwind label %416

402:                                              ; preds = %394
  %403 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN3cgp8numarrayINS_14numarray_stackIfLi2EEEE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %395, ptr noundef nonnull align 4 dereferenceable(8) %82)
          to label %404 unwind label %416

404:                                              ; preds = %402
  call void @llvm.lifetime.end.p0(i64 4, ptr %84) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %83) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %82) #10
  br label %405

405:                                              ; preds = %404
  %406 = load i64, ptr %69, align 8, !tbaa !13
  %407 = add i64 %406, 1
  store i64 %407, ptr %69, align 8, !tbaa !13
  br label %373, !llvm.loop !20

408:                                              ; preds = %388, %386, %384, %380
  %409 = landingpad { ptr, i32 }
          cleanup
  %410 = extractvalue { ptr, i32 } %409, 0
  store ptr %410, ptr %13, align 8
  %411 = extractvalue { ptr, i32 } %409, 1
  store i32 %411, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %75) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %74) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %73) #10
  call void @llvm.lifetime.end.p0(i64 12, ptr %72) #10
  call void @llvm.lifetime.end.p0(i64 12, ptr %71) #10
  call void @llvm.lifetime.end.p0(i64 12, ptr %70) #10
  br label %420

412:                                              ; preds = %392, %390
  %413 = landingpad { ptr, i32 }
          cleanup
  %414 = extractvalue { ptr, i32 } %413, 0
  store ptr %414, ptr %13, align 8
  %415 = extractvalue { ptr, i32 } %413, 1
  store i32 %415, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %81) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %80) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %79) #10
  call void @llvm.lifetime.end.p0(i64 12, ptr %78) #10
  br label %420

416:                                              ; preds = %402, %394
  %417 = landingpad { ptr, i32 }
          cleanup
  %418 = extractvalue { ptr, i32 } %417, 0
  store ptr %418, ptr %13, align 8
  %419 = extractvalue { ptr, i32 } %417, 1
  store i32 %419, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %84) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %83) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %82) #10
  br label %420

420:                                              ; preds = %416, %412, %408
  call void @llvm.lifetime.end.p0(i64 8, ptr %69) #10
  br label %479

421:                                              ; preds = %379
  call void @llvm.lifetime.start.p0(i64 8, ptr %85) #10
  store i64 0, ptr %85, align 8, !tbaa !13
  br label %422

422:                                              ; preds = %460, %421
  %423 = load i64, ptr %85, align 8, !tbaa !13
  %424 = load i32, ptr %9, align 4, !tbaa !11
  %425 = sub nsw i32 %424, 1
  %426 = sext i32 %425 to i64
  %427 = icmp ult i64 %423, %426
  br i1 %427, label %429, label %428

428:                                              ; preds = %422
  store i32 17, ptr %31, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %85) #10
  br label %467

429:                                              ; preds = %422
  %430 = getelementptr inbounds %"struct.cgp::mesh", ptr %0, i32 0, i32 4
  call void @llvm.lifetime.start.p0(i64 12, ptr %86) #10
  call void @llvm.lifetime.start.p0(i64 8, ptr %87) #10
  %431 = load i32, ptr %9, align 4, !tbaa !11
  %432 = load i32, ptr %10, align 4, !tbaa !11
  %433 = mul nsw i32 %431, %432
  %434 = load i32, ptr %9, align 4, !tbaa !11
  %435 = add nsw i32 %433, %434
  %436 = sub nsw i32 %435, 1
  %437 = sext i32 %436 to i64
  %438 = load i64, ptr %85, align 8, !tbaa !13
  %439 = add i64 %437, %438
  store i64 %439, ptr %87, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %88) #10
  %440 = load i32, ptr %10, align 4, !tbaa !11
  %441 = sub nsw i32 %440, 1
  %442 = sext i32 %441 to i64
  %443 = load i32, ptr %10, align 4, !tbaa !11
  %444 = sext i32 %443 to i64
  %445 = load i64, ptr %85, align 8, !tbaa !13
  %446 = add i64 %445, 1
  %447 = mul i64 %444, %446
  %448 = add i64 %442, %447
  store i64 %448, ptr %88, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %89) #10
  %449 = load i32, ptr %10, align 4, !tbaa !11
  %450 = sub nsw i32 %449, 1
  %451 = sext i32 %450 to i64
  %452 = load i32, ptr %10, align 4, !tbaa !11
  %453 = sext i32 %452 to i64
  %454 = load i64, ptr %85, align 8, !tbaa !13
  %455 = mul i64 %453, %454
  %456 = add i64 %451, %455
  store i64 %456, ptr %89, align 8, !tbaa !13
  invoke void @_ZN3cgp14numarray_stackIjLi3EEC2ImmmEERKT_RKT0_RKT1_(ptr noundef nonnull align 4 dereferenceable(12) %86, ptr noundef nonnull align 8 dereferenceable(8) %87, ptr noundef nonnull align 8 dereferenceable(8) %88, ptr noundef nonnull align 8 dereferenceable(8) %89)
          to label %457 unwind label %463

457:                                              ; preds = %429
  %458 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN3cgp8numarrayINS_14numarray_stackIjLi3EEEE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %430, ptr noundef nonnull align 4 dereferenceable(12) %86)
          to label %459 unwind label %463

459:                                              ; preds = %457
  call void @llvm.lifetime.end.p0(i64 8, ptr %89) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %88) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %87) #10
  call void @llvm.lifetime.end.p0(i64 12, ptr %86) #10
  br label %460

460:                                              ; preds = %459
  %461 = load i64, ptr %85, align 8, !tbaa !13
  %462 = add i64 %461, 1
  store i64 %462, ptr %85, align 8, !tbaa !13
  br label %422, !llvm.loop !21

463:                                              ; preds = %457, %429
  %464 = landingpad { ptr, i32 }
          cleanup
  %465 = extractvalue { ptr, i32 } %464, 0
  store ptr %465, ptr %13, align 8
  %466 = extractvalue { ptr, i32 } %464, 1
  store i32 %466, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %89) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %88) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %87) #10
  call void @llvm.lifetime.end.p0(i64 12, ptr %86) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %85) #10
  br label %479

467:                                              ; preds = %428
  %468 = invoke noundef nonnull align 8 dereferenceable(120) ptr @_ZN3cgp4mesh16fill_empty_fieldEv(ptr noundef nonnull align 8 dereferenceable(120) %0)
          to label %469 unwind label %473

469:                                              ; preds = %467
  %470 = invoke noundef nonnull align 8 dereferenceable(120) ptr @_ZN3cgp4mesh17flip_connectivityEv(ptr noundef nonnull align 8 dereferenceable(120) %0)
          to label %471 unwind label %473

471:                                              ; preds = %469
  store i1 true, ptr %29, align 1
  store i32 1, ptr %31, align 4
  %472 = load i1, ptr %29, align 1
  br i1 %472, label %478, label %477

473:                                              ; preds = %469, %467
  %474 = landingpad { ptr, i32 }
          cleanup
  %475 = extractvalue { ptr, i32 } %474, 0
  store ptr %475, ptr %13, align 8
  %476 = extractvalue { ptr, i32 } %474, 1
  store i32 %476, ptr %14, align 4
  br label %479

477:                                              ; preds = %471
  call void @_ZN3cgp4meshD2Ev(ptr noundef nonnull align 8 dereferenceable(120) %0) #10
  br label %478

478:                                              ; preds = %477, %471
  ret void

479:                                              ; preds = %473, %463, %420, %368, %336, %292, %272
  call void @_ZN3cgp4meshD2Ev(ptr noundef nonnull align 8 dereferenceable(120) %0) #10
  br label %480

480:                                              ; preds = %479, %163, %123
  %481 = load ptr, ptr %13, align 8
  %482 = load i32, ptr %14, align 4
  %483 = insertvalue { ptr, i32 } poison, ptr %481, 0
  %484 = insertvalue { ptr, i32 } %483, i32 %482, 1
  resume { ptr, i32 } %484
}

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

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

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

; Function Attrs: mustprogress 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 = { 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 = { "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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #9 = { 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 #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}
!18 = distinct !{!18, !16}
!19 = distinct !{!19, !16}
!20 = distinct !{!20, !16}
!21 = distinct !{!21, !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::numarray_stack" = type { float, float, float }
%"struct.cgp::numarray_stack.16" = type { float, float }
%"struct.cgp::numarray_stack.19" = type { i32, i32, i32 }

@.str.2 = external hidden unnamed_addr constant [89 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [28 x i8], align 1
@__func__._ZN3cgp21mesh_primitive_sphereEfRKNS_14numarray_stackIfLi3EEEii = external hidden unnamed_addr constant [22 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [29 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

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

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

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

; 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 #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 #5 align 2

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3cgp21mesh_primitive_sphereEfRKNS_14numarray_stackIfLi3EEEii(ptr dead_on_unwind noalias writable sret(%"struct.cgp::mesh") align 8 %0, float noundef %1, ptr noundef nonnull align 4 dereferenceable(12) %2, i32 noundef %3, i32 noundef %4) local_unnamed_addr #8 personality ptr @__gxx_personality_v0 {
  %6 = alloca %"class.std::__cxx11::basic_string", align 8
  %7 = alloca %"class.std::allocator.12", align 1
  %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 float, align 4
  %23 = alloca float, align 4
  %24 = alloca %"struct.cgp::numarray_stack", align 4
  %25 = alloca float, align 4
  %26 = alloca float, align 4
  %27 = alloca float, align 4
  %28 = alloca %"struct.cgp::numarray_stack", align 8
  %29 = alloca %"struct.cgp::numarray_stack", align 8
  %30 = alloca %"struct.cgp::numarray_stack.16", align 4
  %31 = alloca %"struct.cgp::numarray.6", align 8
  %32 = alloca %"struct.cgp::numarray_stack", align 8
  %33 = alloca %"struct.cgp::numarray_stack", align 8
  %34 = alloca %"struct.cgp::numarray_stack", align 4
  %35 = alloca i32, align 4
  %36 = alloca i32, align 4
  %37 = alloca float, align 4
  %38 = alloca %"struct.cgp::numarray_stack", align 4
  %39 = alloca i32, align 4
  %40 = alloca i32, align 4
  %41 = alloca float, align 4
  %42 = alloca %"struct.cgp::numarray_stack.16", align 4
  %43 = alloca float, align 4
  %44 = alloca float, align 4
  %45 = alloca %"struct.cgp::numarray_stack.19", align 4
  %46 = alloca i64, align 8
  %47 = alloca i64, align 8
  %48 = alloca i64, align 8
  %49 = alloca %"struct.cgp::numarray_stack", align 8
  %50 = alloca %"struct.cgp::numarray_stack", align 8
  %51 = alloca %"struct.cgp::numarray_stack", align 4
  %52 = alloca i32, align 4
  %53 = alloca i32, align 4
  %54 = alloca float, align 4
  %55 = alloca %"struct.cgp::numarray_stack", align 4
  %56 = alloca i32, align 4
  %57 = alloca i32, align 4
  %58 = alloca float, align 4
  %59 = alloca %"struct.cgp::numarray_stack.16", align 4
  %60 = alloca float, align 4
  %61 = alloca float, align 4
  %62 = alloca %"struct.cgp::numarray_stack.19", align 4
  %63 = alloca i64, align 8
  %64 = alloca i64, align 8
  %65 = alloca i64, align 8
  %66 = fcmp ule float %1, 0.000000e+00
  br i1 %66, label %67, label %87

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

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

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

70:                                               ; preds = %69
  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 @__func__._ZN3cgp21mesh_primitive_sphereEfRKNS_14numarray_stackIfLi3EEEii, ptr noundef nonnull align 1 dereferenceable(1) %13)
          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) %6, ptr noundef nonnull align 8 dereferenceable(32) %8, ptr noundef nonnull align 8 dereferenceable(32) %10, ptr noundef nonnull align 8 dereferenceable(32) %12, i32 noundef 130) #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) %12) #9
  br label %83

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

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

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

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

87:                                               ; preds = %5
  %88 = icmp slt i32 %3, 3
  %89 = icmp slt i32 %4, 3
  %.not108 = or i1 %88, %89
  br i1 %.not108, label %90, label %.preheader128.us.preheader

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

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

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

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

94:                                               ; preds = %93
  invoke void @_ZN3cgp10call_errorERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES7_S7_S7_i(ptr noundef nonnull align 8 dereferenceable(32) %14, ptr noundef nonnull align 8 dereferenceable(32) %16, ptr noundef nonnull align 8 dereferenceable(32) %18, ptr noundef nonnull align 8 dereferenceable(32) %20, i32 noundef 131) #10
          to label %95 unwind label %104

95:                                               ; preds = %94
  unreachable

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

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

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

102:                                              ; preds = %93
  %103 = landingpad { ptr, i32 }
          cleanup
  br label %106

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

106:                                              ; preds = %104, %102
  %.pn115 = phi { ptr, i32 } [ %105, %104 ], [ %103, %102 ]
  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, %100
  %.pn115.pn = phi { ptr, i32 } [ %.pn115, %106 ], [ %101, %100 ]
  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, %98
  %.pn115.pn.pn = phi { ptr, i32 } [ %.pn115.pn, %107 ], [ %99, %98 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %17) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %17) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %16) #9
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #9
  br label %109

109:                                              ; preds = %108, %96
  %.pn115.pn.pn.pn = phi { ptr, i32 } [ %.pn115.pn.pn, %108 ], [ %97, %96 ]
  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
  br label %237

.preheader128.us.preheader:                       ; preds = %87
  tail call void @_ZN3cgp4meshC2Ev(ptr noundef nonnull align 8 dereferenceable(120) %0)
  %110 = zext nneg i32 %3 to i64
  %111 = zext nneg i32 %4 to i64
  %112 = uitofp nneg i32 %3 to float
  %113 = fadd float %112, -1.000000e+00
  %114 = uitofp nneg i32 %4 to float
  %115 = fadd float %114, -1.000000e+00
  %116 = fadd float %114, 1.000000e+00
  %117 = fdiv float 1.000000e+00, %116
  %.sroa.235.0..sroa_idx = getelementptr inbounds i8, ptr %29, i64 8
  %.sroa.231.0..sroa_idx = getelementptr inbounds i8, ptr %28, i64 8
  %118 = getelementptr inbounds i8, ptr %0, i64 24
  %119 = getelementptr inbounds i8, ptr %0, i64 72
  br label %.preheader128.us

.preheader128.us:                                 ; preds = %.preheader128.us.preheader, %._crit_edge.us
  %.0100136.us = phi i64 [ %151, %._crit_edge.us ], [ 0, %.preheader128.us.preheader ]
  %120 = uitofp nneg i64 %.0100136.us to float
  %121 = fdiv float %120, %113
  %122 = fadd float %121, -5.000000e-01
  %123 = fmul float %122, 0x401921FA00000000
  br label %124

124:                                              ; preds = %.preheader128.us, %149
  %.0103135.us = phi i64 [ 0, %.preheader128.us ], [ %150, %149 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %22) #9
  store float %121, ptr %22, align 4, !tbaa !5
  %125 = uitofp nneg i64 %.0103135.us to float
  %126 = fdiv float %125, %115
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %23) #9
  %127 = fsub float 1.000000e+00, %126
  %128 = fmul float %126, %114
  %129 = fdiv float %128, %116
  %130 = call float @llvm.fmuladd.f32(float %117, float %127, float %129)
  store float %130, ptr %23, align 4, !tbaa !5
  %131 = fadd float %130, -5.000000e-01
  %132 = fmul float %131, 0x400921FA00000000
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %24) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %25) #9
  %133 = call noundef float @_ZSt3cosf(float noundef %132)
  %134 = call noundef float @_ZSt3cosf(float noundef %123)
  %135 = fmul float %133, %134
  store float %135, ptr %25, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %26) #9
  %136 = call noundef float @_ZSt3cosf(float noundef %132)
  %137 = call noundef float @_ZSt3sinf(float noundef %123)
  %138 = fmul float %136, %137
  store float %138, ptr %26, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %27) #9
  %139 = call noundef float @_ZSt3sinf(float noundef %132)
  store float %139, ptr %27, align 4, !tbaa !5
  call void @_ZN3cgp14numarray_stackIfLi3EEC2ERKfS3_S3_(ptr noundef nonnull align 4 dereferenceable(12) %24, ptr noundef nonnull align 4 dereferenceable(4) %25, ptr noundef nonnull align 4 dereferenceable(4) %26, ptr noundef nonnull align 4 dereferenceable(4) %27)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %27) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %26) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %25) #9
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %28) #9
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %29) #9
  %140 = invoke { <2 x float>, float } @_ZN3cgpmlEfRKNS_14numarray_stackIfLi3EEE(float noundef %1, ptr noundef nonnull align 4 dereferenceable(12) %24)
          to label %141 unwind label %.split140.us

141:                                              ; preds = %124
  %.fca.0.extract32.us = extractvalue { <2 x float>, float } %140, 0
  %.fca.1.extract33.us = extractvalue { <2 x float>, float } %140, 1
  store <2 x float> %.fca.0.extract32.us, ptr %29, align 8
  store float %.fca.1.extract33.us, ptr %.sroa.235.0..sroa_idx, align 8
  %142 = invoke { <2 x float>, float } @_ZN3cgpplERKNS_14numarray_stackIfLi3EEES3_(ptr noundef nonnull align 4 dereferenceable(12) %29, ptr noundef nonnull align 4 dereferenceable(12) %2)
          to label %143 unwind label %.split140.us

143:                                              ; preds = %141
  %.fca.0.extract28.us = extractvalue { <2 x float>, float } %142, 0
  %.fca.1.extract29.us = extractvalue { <2 x float>, float } %142, 1
  store <2 x float> %.fca.0.extract28.us, ptr %28, align 8
  store float %.fca.1.extract29.us, ptr %.sroa.231.0..sroa_idx, align 8
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %29) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %30) #9
  call void @_ZN3cgp14numarray_stackIfLi2EEC2ERKfS3_(ptr noundef nonnull align 4 dereferenceable(8) %30, ptr noundef nonnull align 4 dereferenceable(4) %22, ptr noundef nonnull align 4 dereferenceable(4) %23)
  %144 = 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) %28)
          to label %145 unwind label %.split143.us

145:                                              ; preds = %143
  %146 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN3cgp8numarrayINS_14numarray_stackIfLi3EEEE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %118, ptr noundef nonnull align 4 dereferenceable(12) %24)
          to label %147 unwind label %.split143.us

147:                                              ; preds = %145
  %148 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN3cgp8numarrayINS_14numarray_stackIfLi2EEEE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %119, ptr noundef nonnull align 4 dereferenceable(8) %30)
          to label %149 unwind label %.split143.us

149:                                              ; preds = %147
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %30) #9
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %28) #9
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %24) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %23) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %22) #9
  %150 = add nuw nsw i64 %.0103135.us, 1
  %exitcond.not = icmp eq i64 %150, %111
  br i1 %exitcond.not, label %._crit_edge.us, label %124, !llvm.loop !9

._crit_edge.us:                                   ; preds = %149
  %151 = add nuw nsw i64 %.0100136.us, 1
  %exitcond156.not = icmp eq i64 %151, %110
  br i1 %exitcond156.not, label %.split138.us, label %.preheader128.us, !llvm.loop !11

.split140.us:                                     ; preds = %141, %124
  %152 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %29) #9
  br label %154

.split143.us:                                     ; preds = %147, %145, %143
  %153 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %30) #9
  br label %154

.split138.us:                                     ; preds = %._crit_edge.us
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %31) #9
  invoke void @_ZN3cgpL17connectivity_gridEmm(ptr dead_on_unwind nonnull writable sret(%"struct.cgp::numarray.6") align 8 %31, i64 noundef %110, i64 noundef %111)
          to label %155 unwind label %162

154:                                              ; preds = %.split143.us, %.split140.us
  %.pn112 = phi { ptr, i32 } [ %153, %.split143.us ], [ %152, %.split140.us ]
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %28) #9
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %24) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %23) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %22) #9
  br label %236

155:                                              ; preds = %.split138.us
  %156 = getelementptr inbounds i8, ptr %0, i64 96
  %157 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN3cgp8numarrayINS_14numarray_stackIjLi3EEEEaSEOS3_(ptr noundef nonnull align 8 dereferenceable(24) %156, ptr noundef nonnull align 8 dereferenceable(24) %31) #9
  call void @_ZN3cgp8numarrayINS_14numarray_stackIjLi3EEEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %31) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %31) #9
  %158 = add nsw i32 %3, -1
  %159 = sext i32 %158 to i64
  %.not = icmp eq i32 %158, 0
  br i1 %.not, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %155
  %.sroa.224.0..sroa_idx = getelementptr inbounds i8, ptr %33, i64 8
  %.sroa.220.0..sroa_idx = getelementptr inbounds i8, ptr %32, i64 8
  br label %164

.preheader127:                                    ; preds = %176
  br i1 %.not, label %._crit_edge, label %.lr.ph147

.lr.ph147:                                        ; preds = %.preheader127
  %160 = mul nuw nsw i32 %4, %3
  %161 = zext nneg i32 %160 to i64
  br label %184

162:                                              ; preds = %.split138.us
  %163 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %31) #9
  br label %236

164:                                              ; preds = %.lr.ph, %176
  %.0104145 = phi i64 [ 0, %.lr.ph ], [ %177, %176 ]
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %32) #9
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %33) #9
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %34) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %35) #9
  store i32 0, ptr %35, align 4, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %36) #9
  store i32 0, ptr %36, align 4, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %37) #9
  store float -1.000000e+00, ptr %37, align 4, !tbaa !5
  call void @_ZN3cgp14numarray_stackIfLi3EEC2IiifEERKT_RKT0_RKT1_(ptr noundef nonnull align 4 dereferenceable(12) %34, ptr noundef nonnull align 4 dereferenceable(4) %35, ptr noundef nonnull align 4 dereferenceable(4) %36, ptr noundef nonnull align 4 dereferenceable(4) %37)
  %165 = invoke { <2 x float>, float } @_ZN3cgpmlEfRKNS_14numarray_stackIfLi3EEE(float noundef %1, ptr noundef nonnull align 4 dereferenceable(12) %34)
          to label %166 unwind label %178

166:                                              ; preds = %164
  %.fca.0.extract21 = extractvalue { <2 x float>, float } %165, 0
  %.fca.1.extract22 = extractvalue { <2 x float>, float } %165, 1
  store <2 x float> %.fca.0.extract21, ptr %33, align 8
  store float %.fca.1.extract22, ptr %.sroa.224.0..sroa_idx, align 8
  %167 = invoke { <2 x float>, float } @_ZN3cgpplERKNS_14numarray_stackIfLi3EEES3_(ptr noundef nonnull align 4 dereferenceable(12) %2, ptr noundef nonnull align 4 dereferenceable(12) %33)
          to label %168 unwind label %178

168:                                              ; preds = %166
  %.fca.0.extract17 = extractvalue { <2 x float>, float } %167, 0
  %.fca.1.extract18 = extractvalue { <2 x float>, float } %167, 1
  store <2 x float> %.fca.0.extract17, ptr %32, align 8
  store float %.fca.1.extract18, ptr %.sroa.220.0..sroa_idx, align 8
  %169 = 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) %32)
          to label %170 unwind label %178

170:                                              ; preds = %168
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %37) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %36) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %35) #9
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %34) #9
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %33) #9
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %32) #9
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %38) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %39) #9
  store i32 0, ptr %39, align 4, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %40) #9
  store i32 0, ptr %40, align 4, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %41) #9
  store float -1.000000e+00, ptr %41, align 4, !tbaa !5
  call void @_ZN3cgp14numarray_stackIfLi3EEC2IiifEERKT_RKT0_RKT1_(ptr noundef nonnull align 4 dereferenceable(12) %38, ptr noundef nonnull align 4 dereferenceable(4) %39, ptr noundef nonnull align 4 dereferenceable(4) %40, ptr noundef nonnull align 4 dereferenceable(4) %41)
  %171 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN3cgp8numarrayINS_14numarray_stackIfLi3EEEE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %118, ptr noundef nonnull align 4 dereferenceable(12) %38)
          to label %172 unwind label %180

172:                                              ; preds = %170
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %41) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %40) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %39) #9
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %38) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %42) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %43) #9
  %173 = uitofp i64 %.0104145 to float
  %174 = fdiv float %173, %113
  store float %174, ptr %43, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %44) #9
  store float 0.000000e+00, ptr %44, align 4, !tbaa !5
  call void @_ZN3cgp14numarray_stackIfLi2EEC2ERKfS3_(ptr noundef nonnull align 4 dereferenceable(8) %42, ptr noundef nonnull align 4 dereferenceable(4) %43, ptr noundef nonnull align 4 dereferenceable(4) %44)
  %175 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN3cgp8numarrayINS_14numarray_stackIfLi2EEEE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %119, ptr noundef nonnull align 4 dereferenceable(8) %42)
          to label %176 unwind label %182

176:                                              ; preds = %172
  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 8, ptr nonnull %42) #9
  %177 = add nuw i64 %.0104145, 1
  %exitcond157.not = icmp eq i64 %177, %159
  br i1 %exitcond157.not, label %.preheader127, label %164, !llvm.loop !14

178:                                              ; preds = %168, %166, %164
  %179 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %37) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %36) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %35) #9
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %34) #9
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %33) #9
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %32) #9
  br label %236

180:                                              ; preds = %170
  %181 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %41) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %40) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %39) #9
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %38) #9
  br label %236

182:                                              ; preds = %172
  %183 = landingpad { ptr, i32 }
          cleanup
  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 8, ptr nonnull %42) #9
  br label %236

.preheader126:                                    ; preds = %190
  br i1 %.not, label %._crit_edge, label %.lr.ph149

.lr.ph149:                                        ; preds = %.preheader126
  %.sroa.28.0..sroa_idx = getelementptr inbounds i8, ptr %50, i64 8
  %.sroa.2.0..sroa_idx = getelementptr inbounds i8, ptr %49, i64 8
  br label %199

184:                                              ; preds = %.lr.ph147, %190
  %.0102146 = phi i64 [ 0, %.lr.ph147 ], [ %187, %190 ]
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %45) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %46) #9
  %185 = add i64 %.0102146, %161
  store i64 %185, ptr %46, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %47) #9
  %186 = mul i64 %.0102146, %111
  store i64 %186, ptr %47, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %48) #9
  %187 = add nuw i64 %.0102146, 1
  %188 = mul i64 %187, %111
  store i64 %188, ptr %48, align 8, !tbaa !15
  call void @_ZN3cgp14numarray_stackIjLi3EEC2ImmmEERKT_RKT0_RKT1_(ptr noundef nonnull align 4 dereferenceable(12) %45, ptr noundef nonnull align 8 dereferenceable(8) %46, ptr noundef nonnull align 8 dereferenceable(8) %47, ptr noundef nonnull align 8 dereferenceable(8) %48)
  %189 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN3cgp8numarrayINS_14numarray_stackIjLi3EEEE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %156, ptr noundef nonnull align 4 dereferenceable(12) %45)
          to label %190 unwind label %191

190:                                              ; preds = %184
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %48) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %47) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %46) #9
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %45) #9
  %exitcond159.not = icmp eq i64 %187, %159
  br i1 %exitcond159.not, label %.preheader126, label %184, !llvm.loop !17

191:                                              ; preds = %184
  %192 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %48) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %47) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %46) #9
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %45) #9
  br label %236

.preheader:                                       ; preds = %211
  br i1 %.not, label %._crit_edge, label %.lr.ph151

.lr.ph151:                                        ; preds = %.preheader
  %193 = add nuw i32 %4, 1
  %194 = mul i32 %193, %3
  %195 = add nsw i32 %194, -1
  %196 = sext i32 %195 to i64
  %197 = add nsw i32 %4, -1
  %198 = sext i32 %197 to i64
  br label %220

199:                                              ; preds = %.lr.ph149, %211
  %.0101148 = phi i64 [ 0, %.lr.ph149 ], [ %212, %211 ]
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %49) #9
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %50) #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
  store i32 0, ptr %52, align 4, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %53) #9
  store i32 0, ptr %53, align 4, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %54) #9
  store float 1.000000e+00, ptr %54, align 4, !tbaa !5
  call void @_ZN3cgp14numarray_stackIfLi3EEC2IiifEERKT_RKT0_RKT1_(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)
  %200 = invoke { <2 x float>, float } @_ZN3cgpmlEfRKNS_14numarray_stackIfLi3EEE(float noundef %1, ptr noundef nonnull align 4 dereferenceable(12) %51)
          to label %201 unwind label %213

201:                                              ; preds = %199
  %.fca.0.extract5 = extractvalue { <2 x float>, float } %200, 0
  %.fca.1.extract6 = extractvalue { <2 x float>, float } %200, 1
  store <2 x float> %.fca.0.extract5, ptr %50, align 8
  store float %.fca.1.extract6, ptr %.sroa.28.0..sroa_idx, align 8
  %202 = invoke { <2 x float>, float } @_ZN3cgpplERKNS_14numarray_stackIfLi3EEES3_(ptr noundef nonnull align 4 dereferenceable(12) %2, ptr noundef nonnull align 4 dereferenceable(12) %50)
          to label %203 unwind label %213

203:                                              ; preds = %201
  %.fca.0.extract = extractvalue { <2 x float>, float } %202, 0
  %.fca.1.extract = extractvalue { <2 x float>, float } %202, 1
  store <2 x float> %.fca.0.extract, ptr %49, align 8
  store float %.fca.1.extract, ptr %.sroa.2.0..sroa_idx, align 8
  %204 = 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) %49)
          to label %205 unwind label %213

205:                                              ; preds = %203
  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.end.p0(i64 12, ptr nonnull %51) #9
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %50) #9
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %49) #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
  store i32 0, ptr %56, align 4, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %57) #9
  store i32 0, ptr %57, align 4, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %58) #9
  store float 1.000000e+00, ptr %58, align 4, !tbaa !5
  call void @_ZN3cgp14numarray_stackIfLi3EEC2IiifEERKT_RKT0_RKT1_(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)
  %206 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN3cgp8numarrayINS_14numarray_stackIfLi3EEEE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %118, ptr noundef nonnull align 4 dereferenceable(12) %55)
          to label %207 unwind label %215

207:                                              ; preds = %205
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %58) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %57) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %56) #9
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %55) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %59) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %60) #9
  %208 = uitofp i64 %.0101148 to float
  %209 = fdiv float %208, %113
  store float %209, ptr %60, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %61) #9
  store float 1.000000e+00, ptr %61, align 4, !tbaa !5
  call void @_ZN3cgp14numarray_stackIfLi2EEC2ERKfS3_(ptr noundef nonnull align 4 dereferenceable(8) %59, ptr noundef nonnull align 4 dereferenceable(4) %60, ptr noundef nonnull align 4 dereferenceable(4) %61)
  %210 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN3cgp8numarrayINS_14numarray_stackIfLi2EEEE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %119, ptr noundef nonnull align 4 dereferenceable(8) %59)
          to label %211 unwind label %217

211:                                              ; preds = %207
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %61) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %60) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %59) #9
  %212 = add nuw i64 %.0101148, 1
  %exitcond161.not = icmp eq i64 %212, %159
  br i1 %exitcond161.not, label %.preheader, label %199, !llvm.loop !18

213:                                              ; preds = %203, %201, %199
  %214 = landingpad { ptr, i32 }
          cleanup
  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.end.p0(i64 12, ptr nonnull %51) #9
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %50) #9
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %49) #9
  br label %236

215:                                              ; preds = %205
  %216 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %58) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %57) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %56) #9
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %55) #9
  br label %236

217:                                              ; preds = %207
  %218 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %61) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %60) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %59) #9
  br label %236

._crit_edge:                                      ; preds = %228, %155, %.preheader127, %.preheader126, %.preheader
  %219 = invoke noundef nonnull align 8 dereferenceable(120) ptr @_ZN3cgp4mesh16fill_empty_fieldEv(ptr noundef nonnull align 8 dereferenceable(120) %0)
          to label %231 unwind label %233

220:                                              ; preds = %.lr.ph151, %228
  %.0150 = phi i64 [ 0, %.lr.ph151 ], [ %222, %228 ]
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %62) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %63) #9
  %221 = add i64 %.0150, %196
  store i64 %221, ptr %63, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %64) #9
  %222 = add nuw i64 %.0150, 1
  %223 = mul i64 %222, %111
  %224 = add i64 %223, %198
  store i64 %224, ptr %64, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %65) #9
  %225 = mul i64 %.0150, %111
  %226 = add i64 %225, %198
  store i64 %226, ptr %65, align 8, !tbaa !15
  call void @_ZN3cgp14numarray_stackIjLi3EEC2ImmmEERKT_RKT0_RKT1_(ptr noundef nonnull align 4 dereferenceable(12) %62, ptr noundef nonnull align 8 dereferenceable(8) %63, ptr noundef nonnull align 8 dereferenceable(8) %64, ptr noundef nonnull align 8 dereferenceable(8) %65)
  %227 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN3cgp8numarrayINS_14numarray_stackIjLi3EEEE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %156, ptr noundef nonnull align 4 dereferenceable(12) %62)
          to label %228 unwind label %229

228:                                              ; preds = %220
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %65) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %64) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %63) #9
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %62) #9
  %exitcond163.not = icmp eq i64 %222, %159
  br i1 %exitcond163.not, label %._crit_edge, label %220, !llvm.loop !19

229:                                              ; preds = %220
  %230 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %65) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %64) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %63) #9
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %62) #9
  br label %236

231:                                              ; preds = %._crit_edge
  %232 = invoke noundef nonnull align 8 dereferenceable(120) ptr @_ZN3cgp4mesh17flip_connectivityEv(ptr noundef nonnull align 8 dereferenceable(120) %0)
          to label %235 unwind label %233

233:                                              ; preds = %231, %._crit_edge
  %234 = landingpad { ptr, i32 }
          cleanup
  br label %236

235:                                              ; preds = %231
  ret void

236:                                              ; preds = %213, %215, %217, %178, %180, %182, %233, %229, %191, %162, %154
  %.pn112.pn = phi { ptr, i32 } [ %.pn112, %154 ], [ %192, %191 ], [ %230, %229 ], [ %234, %233 ], [ %163, %162 ], [ %183, %182 ], [ %181, %180 ], [ %179, %178 ], [ %218, %217 ], [ %216, %215 ], [ %214, %213 ]
  call void @_ZN3cgp4meshD2Ev(ptr noundef nonnull align 8 dereferenceable(120) %0) #9
  br label %237

237:                                              ; preds = %236, %109, %86
  %.pn120.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn120.pn.pn.pn, %86 ], [ %.pn115.pn.pn.pn, %109 ], [ %.pn112.pn, %236 ]
  resume { ptr, i32 } %.pn120.pn.pn.pn.pn
}

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

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

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

; Function Attrs: mustprogress 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 = { 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 #5 = { 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 #6 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = { nounwind }
attributes #10 = { noreturn }

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

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


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