; LLVM IR from jasonlmfong/Model-Modifier :: Model-Modifier/src/scene/surface/Surface_CatmullClark.ll (ZN7Surface12CatmullClarkEv)

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

%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<glm::vec<3, float>, std::allocator<glm::vec<3, float>>>::_Vector_impl" }
%"struct.std::_Vector_base<glm::vec<3, float>, std::allocator<glm::vec<3, float>>>::_Vector_impl" = type { %"struct.std::_Vector_base<glm::vec<3, float>, std::allocator<glm::vec<3, float>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<glm::vec<3, float>, std::allocator<glm::vec<3, float>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%class.Object = type { %"struct.glm::vec", %"struct.glm::vec", %"class.std::vector", %"class.std::vector.41", %"class.std::vector.41", %"class.std::unordered_map.46" }
%"struct.glm::vec" = type { %union.anon, %union.anon.15, %union.anon.16 }
%union.anon = type { float }
%union.anon.15 = type { float }
%union.anon.16 = type { float }
%"class.std::vector.41" = type { %"struct.std::_Vector_base.42" }
%"struct.std::_Vector_base.42" = type { %"struct.std::_Vector_base<std::vector<unsigned int>, std::allocator<std::vector<unsigned int>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::vector<unsigned int>, std::allocator<std::vector<unsigned int>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::vector<unsigned int>, std::allocator<std::vector<unsigned int>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::vector<unsigned int>, std::allocator<std::vector<unsigned int>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::unordered_map.46" = type { %"class.std::_Hashtable.47" }
%"class.std::_Hashtable.47" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"struct.std::__detail::_Hash_node_base" = type { ptr }
%"struct.std::__detail::_Prime_rehash_policy" = type { float, i64 }
%"class.std::allocator" = type { i8 }
%struct.VertexRecord = type { %"struct.glm::vec", %"class.std::vector.22", %"class.std::vector.22" }
%"class.std::vector.22" = type { %"struct.std::_Vector_base.23" }
%"struct.std::_Vector_base.23" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.__gnu_cxx::__normal_iterator.83" = type { ptr }
%struct.EdgeRecord = type { i32, i32, %"struct.glm::vec", %"class.std::vector.22" }
%class.Surface = type { %"class.std::vector.0", %"class.std::vector.5", %"class.std::vector.10", %"struct.glm::vec", %"struct.glm::vec", %"class.std::unordered_map" }
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<VertexRecord, std::allocator<VertexRecord>>::_Vector_impl" }
%"struct.std::_Vector_base<VertexRecord, std::allocator<VertexRecord>>::_Vector_impl" = type { %"struct.std::_Vector_base<VertexRecord, std::allocator<VertexRecord>>::_Vector_impl_data" }
%"struct.std::_Vector_base<VertexRecord, std::allocator<VertexRecord>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.5" = type { %"struct.std::_Vector_base.6" }
%"struct.std::_Vector_base.6" = type { %"struct.std::_Vector_base<EdgeRecord, std::allocator<EdgeRecord>>::_Vector_impl" }
%"struct.std::_Vector_base<EdgeRecord, std::allocator<EdgeRecord>>::_Vector_impl" = type { %"struct.std::_Vector_base<EdgeRecord, std::allocator<EdgeRecord>>::_Vector_impl_data" }
%"struct.std::_Vector_base<EdgeRecord, std::allocator<EdgeRecord>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.10" = type { %"struct.std::_Vector_base.11" }
%"struct.std::_Vector_base.11" = type { %"struct.std::_Vector_base<FaceRecord, std::allocator<FaceRecord>>::_Vector_impl" }
%"struct.std::_Vector_base<FaceRecord, std::allocator<FaceRecord>>::_Vector_impl" = type { %"struct.std::_Vector_base<FaceRecord, std::allocator<FaceRecord>>::_Vector_impl_data" }
%"struct.std::_Vector_base<FaceRecord, std::allocator<FaceRecord>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::unordered_map" = type { %"class.std::_Hashtable" }
%"class.std::_Hashtable" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%struct.FaceRecord = type { %"struct.glm::vec", %"class.std::vector.22", %"class.std::unordered_map.27", %"class.std::vector.22" }
%"class.std::unordered_map.27" = type { %"class.std::_Hashtable.28" }
%"class.std::_Hashtable.28" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7Surface21CatmulClarkEdgePointsEv(ptr dead_on_unwind noalias writable sret(%"class.std::vector") align 8, ptr noundef nonnull align 8 dereferenceable(152)) #0 align 2

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

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

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorI10EdgeRecordSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #2 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIjSaIjEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) #2 align 2

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(120) ptr @_ZNSt6vectorI10FaceRecordSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #2 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7Surface11CCOutputOBJESt6vectorIN3glm3vecILi3EfLNS1_9qualifierE0EEESaIS4_EE(ptr dead_on_unwind noalias writable sret(%class.Object) align 8, ptr noundef nonnull align 8 dereferenceable(152), ptr noundef) #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(64) ptr @_ZNSt6vectorI12VertexRecordSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorI12VertexRecordSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) #2 align 2

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #7

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIPjSt6vectorIjSaIjEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #6

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(12) ptr @_ZN3glm3vecILi3EfLNS_9qualifierE0EEpLIfEERS2_RKNS0_ILi3ET_LS1_0EEE(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) #6 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPjSt6vectorIjSaIjEEEppEv(ptr noundef nonnull align 8 dereferenceable(8)) #2 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(12) ptr @_ZN3glm3vecILi3EfLNS_9qualifierE0EEdVIfEERS2_T_(ptr noundef nonnull align 4 dereferenceable(12), float noundef) #6 align 2

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7Surface12CatmullClarkEv(ptr dead_on_unwind noalias writable sret(%class.Object) align 8 %0, ptr noundef nonnull align 8 dereferenceable(152) %1) #0 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca %"class.std::vector", align 8
  %6 = alloca i32, align 4
  %7 = alloca %"class.std::vector", align 8
  %8 = alloca %"class.std::allocator", align 1
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca %struct.VertexRecord, align 8
  %15 = alloca %"struct.glm::vec", align 4
  %16 = alloca ptr, align 8
  %17 = alloca %"class.__gnu_cxx::__normal_iterator.83", align 8
  %18 = alloca %"class.__gnu_cxx::__normal_iterator.83", align 8
  %19 = alloca i32, align 4
  %20 = alloca float, align 4
  %21 = alloca %"struct.glm::vec", align 4
  %22 = alloca ptr, align 8
  %23 = alloca %"class.__gnu_cxx::__normal_iterator.83", align 8
  %24 = alloca %"class.__gnu_cxx::__normal_iterator.83", align 8
  %25 = alloca i32, align 4
  %26 = alloca %struct.EdgeRecord, align 8
  %27 = alloca %"struct.glm::vec", align 4
  %28 = alloca %"struct.glm::vec", align 4
  %29 = alloca { <2 x float>, float }, align 8
  %30 = alloca { <2 x float>, float }, align 8
  %31 = alloca %"struct.glm::vec", align 4
  %32 = alloca %"struct.glm::vec", align 4
  %33 = alloca %"struct.glm::vec", align 4
  %34 = alloca { <2 x float>, float }, align 8
  %35 = alloca { <2 x float>, float }, align 8
  %36 = alloca %"struct.glm::vec", align 4
  %37 = alloca { <2 x float>, float }, align 8
  %38 = alloca { <2 x float>, float }, align 8
  %39 = alloca %"class.std::vector", align 8
  store ptr %0, ptr %3, align 8
  store ptr %1, ptr %4, align 8, !tbaa !5
  %40 = load ptr, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr %5) #8
  call void @_ZN7Surface21CatmulClarkEdgePointsEv(ptr dead_on_unwind writable sret(%"class.std::vector") align 8 %5, ptr noundef nonnull align 8 dereferenceable(152) %40)
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #8
  %41 = getelementptr inbounds %class.Surface, ptr %40, i32 0, i32 0
  %42 = call noundef i64 @_ZNKSt6vectorI12VertexRecordSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %41) #8
  %43 = trunc i64 %42 to i32
  store i32 %43, ptr %6, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 24, ptr %7) #8
  %44 = load i32, ptr %6, align 4, !tbaa !9
  %45 = zext i32 %44 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr %8) #8
  call void @_ZNSaIN3glm3vecILi3EfLNS_9qualifierE0EEEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #8
  invoke void @_ZNSt6vectorIN3glm3vecILi3EfLNS0_9qualifierE0EEESaIS3_EEC2EmRKS4_(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %45, ptr noundef nonnull align 1 dereferenceable(1) %8)
          to label %46 unwind label %52

46:                                               ; preds = %2
  call void @_ZNSt15__new_allocatorIN3glm3vecILi3EfLNS0_9qualifierE0EEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %8) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #8
  store i32 0, ptr %11, align 4, !tbaa !9
  br label %47

47:                                               ; preds = %65, %46
  %48 = load i32, ptr %11, align 4, !tbaa !9
  %49 = load i32, ptr %6, align 4, !tbaa !9
  %50 = icmp ult i32 %48, %49
  br i1 %50, label %56, label %51

51:                                               ; preds = %47
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #8
  br label %68

52:                                               ; preds = %2
  %53 = landingpad { ptr, i32 }
          cleanup
  %54 = extractvalue { ptr, i32 } %53, 0
  store ptr %54, ptr %9, align 8
  %55 = extractvalue { ptr, i32 } %53, 1
  store i32 %55, ptr %10, align 4
  call void @_ZNSt15__new_allocatorIN3glm3vecILi3EfLNS0_9qualifierE0EEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %8) #8
  br label %228

56:                                               ; preds = %47
  %57 = getelementptr inbounds %class.Surface, ptr %40, i32 0, i32 0
  %58 = load i32, ptr %11, align 4, !tbaa !9
  %59 = zext i32 %58 to i64
  %60 = call noundef nonnull align 8 dereferenceable(64) ptr @_ZNSt6vectorI12VertexRecordSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %57, i64 noundef %59) #8
  %61 = getelementptr inbounds %struct.VertexRecord, ptr %60, i32 0, i32 0
  %62 = load i32, ptr %11, align 4, !tbaa !9
  %63 = zext i32 %62 to i64
  %64 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorIN3glm3vecILi3EfLNS0_9qualifierE0EEESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %63) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %64, ptr align 8 %61, i64 12, i1 false), !tbaa.struct !11
  br label %65

65:                                               ; preds = %56
  %66 = load i32, ptr %11, align 4, !tbaa !9
  %67 = add i32 %66, 1
  store i32 %67, ptr %11, align 4, !tbaa !9
  br label %47, !llvm.loop !13

68:                                               ; preds = %51
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #8
  store i32 0, ptr %12, align 4, !tbaa !9
  br label %69

69:                                               ; preds = %191, %68
  %70 = load i32, ptr %12, align 4, !tbaa !9
  %71 = load i32, ptr %6, align 4, !tbaa !9
  %72 = icmp ult i32 %70, %71
  br i1 %72, label %74, label %73

73:                                               ; preds = %69
  store i32 5, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #8
  br label %216

74:                                               ; preds = %69
  call void @llvm.lifetime.start.p0(i64 64, ptr %14) #8
  %75 = getelementptr inbounds %class.Surface, ptr %40, i32 0, i32 0
  %76 = load i32, ptr %12, align 4, !tbaa !9
  %77 = zext i32 %76 to i64
  %78 = call noundef nonnull align 8 dereferenceable(64) ptr @_ZNSt6vectorI12VertexRecordSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %75, i64 noundef %77) #8
  invoke void @_ZN12VertexRecordC2ERKS_(ptr noundef nonnull align 8 dereferenceable(64) %14, ptr noundef nonnull align 8 dereferenceable(64) %78)
          to label %79 unwind label %90

79:                                               ; preds = %74
  call void @llvm.lifetime.start.p0(i64 12, ptr %15) #8
  call void @llvm.memset.p0.i64(ptr align 4 %15, i8 0, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #8
  %80 = getelementptr inbounds %struct.VertexRecord, ptr %14, i32 0, i32 2
  store ptr %80, ptr %16, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #8
  %81 = load ptr, ptr %16, align 8, !tbaa !5
  %82 = call ptr @_ZNSt6vectorIjSaIjEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %81) #8
  %83 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.83", ptr %17, i32 0, i32 0
  store ptr %82, ptr %83, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #8
  %84 = load ptr, ptr %16, align 8, !tbaa !5
  %85 = call ptr @_ZNSt6vectorIjSaIjEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %84) #8
  %86 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.83", ptr %18, i32 0, i32 0
  store ptr %85, ptr %86, align 8
  br label %87

87:                                               ; preds = %104, %79
  %88 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPjSt6vectorIjSaIjEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %17, ptr noundef nonnull align 8 dereferenceable(8) %18) #8
  br i1 %88, label %94, label %89

89:                                               ; preds = %87
  store i32 8, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #8
  br label %110

90:                                               ; preds = %74
  %91 = landingpad { ptr, i32 }
          cleanup
  %92 = extractvalue { ptr, i32 } %91, 0
  store ptr %92, ptr %9, align 8
  %93 = extractvalue { ptr, i32 } %91, 1
  store i32 %93, ptr %10, align 4
  br label %215

94:                                               ; preds = %87
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #8
  %95 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPjSt6vectorIjSaIjEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %17) #8
  %96 = load i32, ptr %95, align 4, !tbaa !9
  store i32 %96, ptr %19, align 4, !tbaa !9
  %97 = getelementptr inbounds %class.Surface, ptr %40, i32 0, i32 2
  %98 = load i32, ptr %19, align 4, !tbaa !9
  %99 = zext i32 %98 to i64
  %100 = call noundef nonnull align 8 dereferenceable(120) ptr @_ZNSt6vectorI10FaceRecordSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %97, i64 noundef %99) #8
  %101 = getelementptr inbounds %struct.FaceRecord, ptr %100, i32 0, i32 0
  %102 = invoke noundef nonnull align 4 dereferenceable(12) ptr @_ZN3glm3vecILi3EfLNS_9qualifierE0EEpLIfEERS2_RKNS0_ILi3ET_LS1_0EEE(ptr noundef nonnull align 4 dereferenceable(12) %15, ptr noundef nonnull align 4 dereferenceable(12) %101)
          to label %103 unwind label %106

103:                                              ; preds = %94
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #8
  br label %104

104:                                              ; preds = %103
  %105 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPjSt6vectorIjSaIjEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %17) #8
  br label %87

106:                                              ; preds = %94
  %107 = landingpad { ptr, i32 }
          cleanup
  %108 = extractvalue { ptr, i32 } %107, 0
  store ptr %108, ptr %9, align 8
  %109 = extractvalue { ptr, i32 } %107, 1
  store i32 %109, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #8
  br label %214

110:                                              ; preds = %89
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #8
  %111 = getelementptr inbounds %struct.VertexRecord, ptr %14, i32 0, i32 2
  %112 = call noundef i64 @_ZNKSt6vectorIjSaIjEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %111) #8
  %113 = uitofp i64 %112 to float
  store float %113, ptr %20, align 4, !tbaa !15
  %114 = load float, ptr %20, align 4, !tbaa !15
  %115 = invoke noundef nonnull align 4 dereferenceable(12) ptr @_ZN3glm3vecILi3EfLNS_9qualifierE0EEdVIfEERS2_T_(ptr noundef nonnull align 4 dereferenceable(12) %15, float noundef %114)
          to label %116 unwind label %127

116:                                              ; preds = %110
  call void @llvm.lifetime.start.p0(i64 12, ptr %21) #8
  call void @llvm.memset.p0.i64(ptr align 4 %21, i8 0, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #8
  %117 = getelementptr inbounds %struct.VertexRecord, ptr %14, i32 0, i32 1
  store ptr %117, ptr %22, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #8
  %118 = load ptr, ptr %22, align 8, !tbaa !5
  %119 = call ptr @_ZNSt6vectorIjSaIjEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %118) #8
  %120 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.83", ptr %23, i32 0, i32 0
  store ptr %119, ptr %120, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #8
  %121 = load ptr, ptr %22, align 8, !tbaa !5
  %122 = call ptr @_ZNSt6vectorIjSaIjEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %121) #8
  %123 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.83", ptr %24, i32 0, i32 0
  store ptr %122, ptr %123, align 8
  br label %124

124:                                              ; preds = %153, %116
  %125 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPjSt6vectorIjSaIjEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %23, ptr noundef nonnull align 8 dereferenceable(8) %24) #8
  br i1 %125, label %131, label %126

126:                                              ; preds = %124
  store i32 10, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #8
  br label %164

127:                                              ; preds = %110
  %128 = landingpad { ptr, i32 }
          cleanup
  %129 = extractvalue { ptr, i32 } %128, 0
  store ptr %129, ptr %9, align 8
  %130 = extractvalue { ptr, i32 } %128, 1
  store i32 %130, ptr %10, align 4
  br label %213

131:                                              ; preds = %124
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #8
  %132 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPjSt6vectorIjSaIjEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %23) #8
  %133 = load i32, ptr %132, align 4, !tbaa !9
  store i32 %133, ptr %25, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 48, ptr %26) #8
  %134 = getelementptr inbounds %class.Surface, ptr %40, i32 0, i32 1
  %135 = load i32, ptr %25, align 4, !tbaa !9
  %136 = zext i32 %135 to i64
  %137 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorI10EdgeRecordSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %134, i64 noundef %136) #8
  invoke void @_ZN10EdgeRecordC2ERKS_(ptr noundef nonnull align 8 dereferenceable(48) %26, ptr noundef nonnull align 8 dereferenceable(48) %137)
          to label %138 unwind label %155

138:                                              ; preds = %131
  call void @llvm.lifetime.start.p0(i64 12, ptr %27) #8
  call void @llvm.lifetime.start.p0(i64 12, ptr %28) #8
  %139 = getelementptr inbounds %struct.EdgeRecord, ptr %26, i32 0, i32 0
  %140 = load i32, ptr %139, align 8, !tbaa !17
  %141 = zext i32 %140 to i64
  %142 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorIN3glm3vecILi3EfLNS0_9qualifierE0EEESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %141) #8
  %143 = getelementptr inbounds %struct.EdgeRecord, ptr %26, i32 0, i32 1
  %144 = load i32, ptr %143, align 4, !tbaa !24
  %145 = zext i32 %144 to i64
  %146 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorIN3glm3vecILi3EfLNS0_9qualifierE0EEESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %145) #8
  %147 = invoke { <2 x float>, float } @_ZN3glmplIfLNS_9qualifierE0EEENS_3vecILi3ET_XT0_EEERKS4_S6_(ptr noundef nonnull align 4 dereferenceable(12) %142, ptr noundef nonnull align 4 dereferenceable(12) %146)
          to label %148 unwind label %159

148:                                              ; preds = %138
  store { <2 x float>, float } %147, ptr %29, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %28, ptr align 8 %29, i64 12, i1 false)
  %149 = invoke { <2 x float>, float } @_ZN3glmmlIfLNS_9qualifierE0EEENS_3vecILi3ET_XT0_EEES3_RKS4_(float noundef 5.000000e-01, ptr noundef nonnull align 4 dereferenceable(12) %28)
          to label %150 unwind label %159

150:                                              ; preds = %148
  store { <2 x float>, float } %149, ptr %30, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %27, ptr align 8 %30, i64 12, i1 false)
  %151 = invoke noundef nonnull align 4 dereferenceable(12) ptr @_ZN3glm3vecILi3EfLNS_9qualifierE0EEpLIfEERS2_RKNS0_ILi3ET_LS1_0EEE(ptr noundef nonnull align 4 dereferenceable(12) %21, ptr noundef nonnull align 4 dereferenceable(12) %27)
          to label %152 unwind label %159

152:                                              ; preds = %150
  call void @llvm.lifetime.end.p0(i64 12, ptr %28) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr %27) #8
  call void @_ZN10EdgeRecordD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %26) #8
  call void @llvm.lifetime.end.p0(i64 48, ptr %26) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #8
  br label %153

153:                                              ; preds = %152
  %154 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPjSt6vectorIjSaIjEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %23) #8
  br label %124

155:                                              ; preds = %131
  %156 = landingpad { ptr, i32 }
          cleanup
  %157 = extractvalue { ptr, i32 } %156, 0
  store ptr %157, ptr %9, align 8
  %158 = extractvalue { ptr, i32 } %156, 1
  store i32 %158, ptr %10, align 4
  br label %163

159:                                              ; preds = %150, %148, %138
  %160 = landingpad { ptr, i32 }
          cleanup
  %161 = extractvalue { ptr, i32 } %160, 0
  store ptr %161, ptr %9, align 8
  %162 = extractvalue { ptr, i32 } %160, 1
  store i32 %162, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 12, ptr %28) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr %27) #8
  call void @_ZN10EdgeRecordD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %26) #8
  br label %163

163:                                              ; preds = %159, %155
  call void @llvm.lifetime.end.p0(i64 48, ptr %26) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #8
  br label %212

164:                                              ; preds = %126
  %165 = getelementptr inbounds %struct.VertexRecord, ptr %14, i32 0, i32 1
  %166 = call noundef i64 @_ZNKSt6vectorIjSaIjEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %165) #8
  %167 = uitofp i64 %166 to float
  %168 = invoke noundef nonnull align 4 dereferenceable(12) ptr @_ZN3glm3vecILi3EfLNS_9qualifierE0EEdVIfEERS2_T_(ptr noundef nonnull align 4 dereferenceable(12) %21, float noundef %167)
          to label %169 unwind label %194

169:                                              ; preds = %164
  call void @llvm.lifetime.start.p0(i64 12, ptr %31) #8
  call void @llvm.lifetime.start.p0(i64 12, ptr %32) #8
  call void @llvm.lifetime.start.p0(i64 12, ptr %33) #8
  %170 = invoke { <2 x float>, float } @_ZN3glmmlIfLNS_9qualifierE0EEENS_3vecILi3ET_XT0_EEES3_RKS4_(float noundef 2.000000e+00, ptr noundef nonnull align 4 dereferenceable(12) %21)
          to label %171 unwind label %198

171:                                              ; preds = %169
  store { <2 x float>, float } %170, ptr %34, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %33, ptr align 8 %34, i64 12, i1 false)
  %172 = invoke { <2 x float>, float } @_ZN3glmplIfLNS_9qualifierE0EEENS_3vecILi3ET_XT0_EEERKS4_S6_(ptr noundef nonnull align 4 dereferenceable(12) %15, ptr noundef nonnull align 4 dereferenceable(12) %33)
          to label %173 unwind label %198

173:                                              ; preds = %171
  store { <2 x float>, float } %172, ptr %35, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %32, ptr align 8 %35, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 12, ptr %36) #8
  %174 = load float, ptr %20, align 4, !tbaa !15
  %175 = fsub float %174, 3.000000e+00
  %176 = load i32, ptr %12, align 4, !tbaa !9
  %177 = zext i32 %176 to i64
  %178 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorIN3glm3vecILi3EfLNS0_9qualifierE0EEESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %177) #8
  %179 = invoke { <2 x float>, float } @_ZN3glmmlIfLNS_9qualifierE0EEENS_3vecILi3ET_XT0_EEES3_RKS4_(float noundef %175, ptr noundef nonnull align 4 dereferenceable(12) %178)
          to label %180 unwind label %202

180:                                              ; preds = %173
  store { <2 x float>, float } %179, ptr %37, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %36, ptr align 8 %37, i64 12, i1 false)
  %181 = invoke { <2 x float>, float } @_ZN3glmplIfLNS_9qualifierE0EEENS_3vecILi3ET_XT0_EEERKS4_S6_(ptr noundef nonnull align 4 dereferenceable(12) %32, ptr noundef nonnull align 4 dereferenceable(12) %36)
          to label %182 unwind label %202

182:                                              ; preds = %180
  store { <2 x float>, float } %181, ptr %38, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %31, ptr align 8 %38, i64 12, i1 false)
  call void @llvm.lifetime.end.p0(i64 12, ptr %36) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr %33) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr %32) #8
  %183 = load float, ptr %20, align 4, !tbaa !15
  %184 = invoke noundef nonnull align 4 dereferenceable(12) ptr @_ZN3glm3vecILi3EfLNS_9qualifierE0EEdVIfEERS2_T_(ptr noundef nonnull align 4 dereferenceable(12) %31, float noundef %183)
          to label %185 unwind label %207

185:                                              ; preds = %182
  %186 = getelementptr inbounds %class.Surface, ptr %40, i32 0, i32 0
  %187 = load i32, ptr %12, align 4, !tbaa !9
  %188 = zext i32 %187 to i64
  %189 = call noundef nonnull align 8 dereferenceable(64) ptr @_ZNSt6vectorI12VertexRecordSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %186, i64 noundef %188) #8
  %190 = getelementptr inbounds %struct.VertexRecord, ptr %189, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %190, ptr align 4 %31, i64 12, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.end.p0(i64 12, ptr %31) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr %21) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr %15) #8
  call void @_ZN12VertexRecordD2Ev(ptr noundef nonnull align 8 dereferenceable(64) %14) #8
  call void @llvm.lifetime.end.p0(i64 64, ptr %14) #8
  br label %191

191:                                              ; preds = %185
  %192 = load i32, ptr %12, align 4, !tbaa !9
  %193 = add i32 %192, 1
  store i32 %193, ptr %12, align 4, !tbaa !9
  br label %69, !llvm.loop !25

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

198:                                              ; preds = %171, %169
  %199 = landingpad { ptr, i32 }
          cleanup
  %200 = extractvalue { ptr, i32 } %199, 0
  store ptr %200, ptr %9, align 8
  %201 = extractvalue { ptr, i32 } %199, 1
  store i32 %201, ptr %10, align 4
  br label %206

202:                                              ; preds = %180, %173
  %203 = landingpad { ptr, i32 }
          cleanup
  %204 = extractvalue { ptr, i32 } %203, 0
  store ptr %204, ptr %9, align 8
  %205 = extractvalue { ptr, i32 } %203, 1
  store i32 %205, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 12, ptr %36) #8
  br label %206

206:                                              ; preds = %202, %198
  call void @llvm.lifetime.end.p0(i64 12, ptr %33) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr %32) #8
  br label %211

207:                                              ; preds = %182
  %208 = landingpad { ptr, i32 }
          cleanup
  %209 = extractvalue { ptr, i32 } %208, 0
  store ptr %209, ptr %9, align 8
  %210 = extractvalue { ptr, i32 } %208, 1
  store i32 %210, ptr %10, align 4
  br label %211

211:                                              ; preds = %207, %206
  call void @llvm.lifetime.end.p0(i64 12, ptr %31) #8
  br label %212

212:                                              ; preds = %211, %194, %163
  call void @llvm.lifetime.end.p0(i64 12, ptr %21) #8
  br label %213

213:                                              ; preds = %212, %127
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #8
  br label %214

214:                                              ; preds = %213, %106
  call void @llvm.lifetime.end.p0(i64 12, ptr %15) #8
  call void @_ZN12VertexRecordD2Ev(ptr noundef nonnull align 8 dereferenceable(64) %14) #8
  br label %215

215:                                              ; preds = %214, %90
  call void @llvm.lifetime.end.p0(i64 64, ptr %14) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #8
  br label %227

216:                                              ; preds = %73
  invoke void @_ZNSt6vectorIN3glm3vecILi3EfLNS0_9qualifierE0EEESaIS3_EEC2ERKS5_(ptr noundef nonnull align 8 dereferenceable(24) %39, ptr noundef nonnull align 8 dereferenceable(24) %5)
          to label %217 unwind label %219

217:                                              ; preds = %216
  invoke void @_ZN7Surface11CCOutputOBJESt6vectorIN3glm3vecILi3EfLNS1_9qualifierE0EEESaIS4_EE(ptr dead_on_unwind writable sret(%class.Object) align 8 %0, ptr noundef nonnull align 8 dereferenceable(152) %40, ptr noundef %39)
          to label %218 unwind label %223

218:                                              ; preds = %217
  call void @_ZNSt6vectorIN3glm3vecILi3EfLNS0_9qualifierE0EEESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %39) #8
  store i32 1, ptr %13, align 4
  call void @_ZNSt6vectorIN3glm3vecILi3EfLNS0_9qualifierE0EEESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %7) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #8
  call void @_ZNSt6vectorIN3glm3vecILi3EfLNS0_9qualifierE0EEESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %5) #8
  ret void

219:                                              ; preds = %216
  %220 = landingpad { ptr, i32 }
          cleanup
  %221 = extractvalue { ptr, i32 } %220, 0
  store ptr %221, ptr %9, align 8
  %222 = extractvalue { ptr, i32 } %220, 1
  store i32 %222, ptr %10, align 4
  br label %227

223:                                              ; preds = %217
  %224 = landingpad { ptr, i32 }
          cleanup
  %225 = extractvalue { ptr, i32 } %224, 0
  store ptr %225, ptr %9, align 8
  %226 = extractvalue { ptr, i32 } %224, 1
  store i32 %226, ptr %10, align 4
  call void @_ZNSt6vectorIN3glm3vecILi3EfLNS0_9qualifierE0EEESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %39) #8
  br label %227

227:                                              ; preds = %223, %219, %215
  call void @_ZNSt6vectorIN3glm3vecILi3EfLNS0_9qualifierE0EEESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #8
  br label %228

228:                                              ; preds = %227, %52
  call void @llvm.lifetime.end.p0(i64 24, ptr %7) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #8
  call void @_ZNSt6vectorIN3glm3vecILi3EfLNS0_9qualifierE0EEESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %5) #8
  br label %229

229:                                              ; preds = %228
  %230 = load ptr, ptr %9, align 8
  %231 = load i32, ptr %10, align 4
  %232 = insertvalue { ptr, i32 } poison, ptr %230, 0
  %233 = insertvalue { ptr, i32 } %232, i32 %231, 1
  resume { ptr, i32 } %233
}

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

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

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

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


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

%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<glm::vec<3, float>, std::allocator<glm::vec<3, float>>>::_Vector_impl" }
%"struct.std::_Vector_base<glm::vec<3, float>, std::allocator<glm::vec<3, float>>>::_Vector_impl" = type { %"struct.std::_Vector_base<glm::vec<3, float>, std::allocator<glm::vec<3, float>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<glm::vec<3, float>, std::allocator<glm::vec<3, float>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%class.Object = type { %"struct.glm::vec", %"struct.glm::vec", %"class.std::vector", %"class.std::vector.41", %"class.std::vector.41", %"class.std::unordered_map.46" }
%"struct.glm::vec" = type { %union.anon, %union.anon.15, %union.anon.16 }
%union.anon = type { float }
%union.anon.15 = type { float }
%union.anon.16 = type { float }
%"class.std::vector.41" = type { %"struct.std::_Vector_base.42" }
%"struct.std::_Vector_base.42" = type { %"struct.std::_Vector_base<std::vector<unsigned int>, std::allocator<std::vector<unsigned int>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::vector<unsigned int>, std::allocator<std::vector<unsigned int>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::vector<unsigned int>, std::allocator<std::vector<unsigned int>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::vector<unsigned int>, std::allocator<std::vector<unsigned int>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::unordered_map.46" = type { %"class.std::_Hashtable.47" }
%"class.std::_Hashtable.47" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"struct.std::__detail::_Hash_node_base" = type { ptr }
%"struct.std::__detail::_Prime_rehash_policy" = type { float, i64 }
%"class.std::allocator" = type { i8 }
%struct.VertexRecord = type { %"struct.glm::vec", %"class.std::vector.22", %"class.std::vector.22" }
%"class.std::vector.22" = type { %"struct.std::_Vector_base.23" }
%"struct.std::_Vector_base.23" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.__gnu_cxx::__normal_iterator.83" = type { ptr }
%struct.EdgeRecord = type { i32, i32, %"struct.glm::vec", %"class.std::vector.22" }

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7Surface21CatmulClarkEdgePointsEv(ptr dead_on_unwind noalias writable sret(%"class.std::vector") align 8, ptr noundef nonnull align 8 dereferenceable(152)) local_unnamed_addr #0 align 2

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

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

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorI10EdgeRecordSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #2 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIjSaIjEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #2 align 2

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(120) ptr @_ZNSt6vectorI10FaceRecordSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #2 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7Surface11CCOutputOBJESt6vectorIN3glm3vecILi3EfLNS1_9qualifierE0EEESaIS4_EE(ptr dead_on_unwind noalias writable sret(%class.Object) align 8, ptr noundef nonnull align 8 dereferenceable(152), ptr noundef) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(64) ptr @_ZNSt6vectorI12VertexRecordSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorI12VertexRecordSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #2 align 2

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

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #7

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIPjSt6vectorIjSaIjEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #6

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPjSt6vectorIjSaIjEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(12) ptr @_ZN3glm3vecILi3EfLNS_9qualifierE0EEpLIfEERS2_RKNS0_ILi3ET_LS1_0EEE(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #6 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPjSt6vectorIjSaIjEEEppEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(12) ptr @_ZN3glm3vecILi3EfLNS_9qualifierE0EEdVIfEERS2_T_(ptr noundef nonnull align 4 dereferenceable(12), float noundef) local_unnamed_addr #6 align 2

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7Surface12CatmullClarkEv(ptr dead_on_unwind noalias writable sret(%class.Object) align 8 %0, ptr noundef nonnull align 8 dereferenceable(152) %1) local_unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"class.std::vector", align 8
  %4 = alloca %"class.std::vector", align 8
  %5 = alloca %"class.std::allocator", align 1
  %6 = alloca %struct.VertexRecord, align 8
  %7 = alloca %"struct.glm::vec", align 4
  %8 = alloca %"class.__gnu_cxx::__normal_iterator.83", align 8
  %9 = alloca %"class.__gnu_cxx::__normal_iterator.83", align 8
  %10 = alloca %"struct.glm::vec", align 4
  %11 = alloca %"class.__gnu_cxx::__normal_iterator.83", align 8
  %12 = alloca %"class.__gnu_cxx::__normal_iterator.83", align 8
  %13 = alloca %struct.EdgeRecord, align 8
  %14 = alloca %"struct.glm::vec", align 8
  %15 = alloca %"struct.glm::vec", align 8
  %16 = alloca %"struct.glm::vec", align 8
  %17 = alloca %"struct.glm::vec", align 8
  %18 = alloca %"struct.glm::vec", align 8
  %19 = alloca %"struct.glm::vec", align 8
  %20 = alloca %"class.std::vector", align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %3) #8
  call void @_ZN7Surface21CatmulClarkEdgePointsEv(ptr dead_on_unwind nonnull writable sret(%"class.std::vector") align 8 %3, ptr noundef nonnull align 8 dereferenceable(152) %1)
  %21 = call noundef i64 @_ZNKSt6vectorI12VertexRecordSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %4) #8
  %22 = and i64 %21, 4294967295
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %5) #8
  call void @_ZNSaIN3glm3vecILi3EfLNS_9qualifierE0EEEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #8
  invoke void @_ZNSt6vectorIN3glm3vecILi3EfLNS0_9qualifierE0EEESaIS3_EEC2EmRKS4_(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %22, ptr noundef nonnull align 1 dereferenceable(1) %5)
          to label %23 unwind label %30

23:                                               ; preds = %2
  call void @_ZNSt15__new_allocatorIN3glm3vecILi3EfLNS0_9qualifierE0EEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %5) #8
  %24 = and i64 %21, 4294967295
  %.not = icmp eq i64 %24, 0
  br i1 %.not, label %._crit_edge66, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %23
  %wide.trip.count = and i64 %21, 4294967295
  br label %.lr.ph

.preheader:                                       ; preds = %.lr.ph
  br i1 %.not, label %._crit_edge66, label %.lr.ph65

.lr.ph65:                                         ; preds = %.preheader
  %25 = getelementptr inbounds i8, ptr %6, i64 40
  %26 = getelementptr inbounds i8, ptr %1, i64 48
  %27 = getelementptr inbounds i8, ptr %6, i64 16
  %28 = getelementptr inbounds i8, ptr %1, i64 24
  %29 = getelementptr inbounds i8, ptr %13, i64 4
  %.sroa.220.0..sroa_idx = getelementptr inbounds i8, ptr %15, i64 8
  %.sroa.216.0..sroa_idx = getelementptr inbounds i8, ptr %14, i64 8
  %.sroa.212.0..sroa_idx = getelementptr inbounds i8, ptr %18, i64 8
  %.sroa.28.0..sroa_idx = getelementptr inbounds i8, ptr %17, i64 8
  %.sroa.24.0..sroa_idx = getelementptr inbounds i8, ptr %19, i64 8
  %.sroa.2.0..sroa_idx = getelementptr inbounds i8, ptr %16, i64 8
  %wide.trip.count72 = and i64 %21, 4294967295
  br label %34

30:                                               ; preds = %2
  %31 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIN3glm3vecILi3EfLNS0_9qualifierE0EEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %5) #8
  br label %107

.lr.ph:                                           ; preds = %.lr.ph.preheader, %.lr.ph
  %indvars.iv = phi i64 [ 0, %.lr.ph.preheader ], [ %indvars.iv.next, %.lr.ph ]
  %32 = call noundef nonnull align 8 dereferenceable(64) ptr @_ZNSt6vectorI12VertexRecordSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %indvars.iv) #8
  %33 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorIN3glm3vecILi3EfLNS0_9qualifierE0EEESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %indvars.iv) #8
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %33, ptr noundef nonnull align 8 dereferenceable(12) %32, i64 12, i1 false), !tbaa.struct !5
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %.preheader, label %.lr.ph, !llvm.loop !9

._crit_edge66:                                    ; preds = %90, %23, %.preheader
  invoke void @_ZNSt6vectorIN3glm3vecILi3EfLNS0_9qualifierE0EEESaIS3_EEC2ERKS5_(ptr noundef nonnull align 8 dereferenceable(24) %20, ptr noundef nonnull align 8 dereferenceable(24) %3)
          to label %100 unwind label %102

34:                                               ; preds = %.lr.ph65, %90
  %indvars.iv69 = phi i64 [ 0, %.lr.ph65 ], [ %indvars.iv.next70, %90 ]
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %6) #8
  %35 = call noundef nonnull align 8 dereferenceable(64) ptr @_ZNSt6vectorI12VertexRecordSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %indvars.iv69) #8
  invoke void @_ZN12VertexRecordC2ERKS_(ptr noundef nonnull align 8 dereferenceable(64) %6, ptr noundef nonnull align 8 dereferenceable(64) %35)
          to label %36 unwind label %46

36:                                               ; preds = %34
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %7) #8
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %7, i8 0, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #8
  %37 = call ptr @_ZNSt6vectorIjSaIjEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %25) #8
  store ptr %37, ptr %8, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #8
  %38 = call ptr @_ZNSt6vectorIjSaIjEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %25) #8
  store ptr %38, ptr %9, align 8
  %39 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPjSt6vectorIjSaIjEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull align 8 dereferenceable(8) %9) #8
  br i1 %39, label %.lr.ph60, label %._crit_edge

._crit_edge:                                      ; preds = %.lr.ph60, %36
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #8
  %40 = call noundef i64 @_ZNKSt6vectorIjSaIjEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %25) #8
  %41 = uitofp i64 %40 to float
  %42 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN3glm3vecILi3EfLNS_9qualifierE0EEdVIfEERS2_T_(ptr noundef nonnull align 4 dereferenceable(12) %7, float noundef %41)
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %10) #8
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %10, i8 0, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #8
  %43 = call ptr @_ZNSt6vectorIjSaIjEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %27) #8
  store ptr %43, ptr %11, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #8
  %44 = call ptr @_ZNSt6vectorIjSaIjEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %27) #8
  store ptr %44, ptr %12, align 8
  %45 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPjSt6vectorIjSaIjEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(8) %12) #8
  br i1 %45, label %.lr.ph62, label %._crit_edge63

46:                                               ; preds = %34
  %47 = landingpad { ptr, i32 }
          cleanup
  br label %99

.lr.ph60:                                         ; preds = %36, %.lr.ph60
  %48 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPjSt6vectorIjSaIjEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %8) #8
  %49 = load i32, ptr %48, align 4, !tbaa !11
  %50 = zext i32 %49 to i64
  %51 = call noundef nonnull align 8 dereferenceable(120) ptr @_ZNSt6vectorI10FaceRecordSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %26, i64 noundef %50) #8
  %52 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN3glm3vecILi3EfLNS_9qualifierE0EEpLIfEERS2_RKNS0_ILi3ET_LS1_0EEE(ptr noundef nonnull align 4 dereferenceable(12) %7, ptr noundef nonnull align 4 dereferenceable(12) %51)
  %53 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPjSt6vectorIjSaIjEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %8) #8
  %54 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPjSt6vectorIjSaIjEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull align 8 dereferenceable(8) %9) #8
  br i1 %54, label %.lr.ph60, label %._crit_edge

._crit_edge63:                                    ; preds = %73, %._crit_edge
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #8
  %55 = call noundef i64 @_ZNKSt6vectorIjSaIjEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %27) #8
  %56 = uitofp i64 %55 to float
  %57 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN3glm3vecILi3EfLNS_9qualifierE0EEdVIfEERS2_T_(ptr noundef nonnull align 4 dereferenceable(12) %10, float noundef %56)
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %16) #8
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %17) #8
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %18) #8
  %58 = invoke { <2 x float>, float } @_ZN3glmmlIfLNS_9qualifierE0EEENS_3vecILi3ET_XT0_EEES3_RKS4_(float noundef 2.000000e+00, ptr noundef nonnull align 4 dereferenceable(12) %10)
          to label %82 unwind label %93

.lr.ph62:                                         ; preds = %._crit_edge, %73
  %59 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPjSt6vectorIjSaIjEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #8
  %60 = load i32, ptr %59, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %13) #8
  %61 = zext i32 %60 to i64
  %62 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorI10EdgeRecordSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %28, i64 noundef %61) #8
  invoke void @_ZN10EdgeRecordC2ERKS_(ptr noundef nonnull align 8 dereferenceable(48) %13, ptr noundef nonnull align 8 dereferenceable(48) %62)
          to label %63 unwind label %77

63:                                               ; preds = %.lr.ph62
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %14) #8
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %15) #8
  %64 = load i32, ptr %13, align 8, !tbaa !13
  %65 = zext i32 %64 to i64
  %66 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorIN3glm3vecILi3EfLNS0_9qualifierE0EEESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %65) #8
  %67 = load i32, ptr %29, align 4, !tbaa !21
  %68 = zext i32 %67 to i64
  %69 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorIN3glm3vecILi3EfLNS0_9qualifierE0EEESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %68) #8
  %70 = invoke { <2 x float>, float } @_ZN3glmplIfLNS_9qualifierE0EEENS_3vecILi3ET_XT0_EEERKS4_S6_(ptr noundef nonnull align 4 dereferenceable(12) %66, ptr noundef nonnull align 4 dereferenceable(12) %69)
          to label %71 unwind label %79

71:                                               ; preds = %63
  %.fca.0.extract17 = extractvalue { <2 x float>, float } %70, 0
  %.fca.1.extract18 = extractvalue { <2 x float>, float } %70, 1
  store <2 x float> %.fca.0.extract17, ptr %15, align 8
  store float %.fca.1.extract18, ptr %.sroa.220.0..sroa_idx, align 8
  %72 = invoke { <2 x float>, float } @_ZN3glmmlIfLNS_9qualifierE0EEENS_3vecILi3ET_XT0_EEES3_RKS4_(float noundef 5.000000e-01, ptr noundef nonnull align 4 dereferenceable(12) %15)
          to label %73 unwind label %79

73:                                               ; preds = %71
  %.fca.0.extract13 = extractvalue { <2 x float>, float } %72, 0
  %.fca.1.extract14 = extractvalue { <2 x float>, float } %72, 1
  store <2 x float> %.fca.0.extract13, ptr %14, align 8
  store float %.fca.1.extract14, ptr %.sroa.216.0..sroa_idx, align 8
  %74 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN3glm3vecILi3EfLNS_9qualifierE0EEpLIfEERS2_RKNS0_ILi3ET_LS1_0EEE(ptr noundef nonnull align 4 dereferenceable(12) %10, ptr noundef nonnull align 4 dereferenceable(12) %14)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %15) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %14) #8
  call void @_ZN10EdgeRecordD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %13) #8
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %13) #8
  %75 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPjSt6vectorIjSaIjEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #8
  %76 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPjSt6vectorIjSaIjEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(8) %12) #8
  br i1 %76, label %.lr.ph62, label %._crit_edge63

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

79:                                               ; preds = %71, %63
  %80 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %15) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %14) #8
  call void @_ZN10EdgeRecordD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %13) #8
  br label %81

81:                                               ; preds = %79, %77
  %.pn53 = phi { ptr, i32 } [ %80, %79 ], [ %78, %77 ]
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %13) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #8
  br label %98

82:                                               ; preds = %._crit_edge63
  %.fca.0.extract9 = extractvalue { <2 x float>, float } %58, 0
  %.fca.1.extract10 = extractvalue { <2 x float>, float } %58, 1
  store <2 x float> %.fca.0.extract9, ptr %18, align 8
  store float %.fca.1.extract10, ptr %.sroa.212.0..sroa_idx, align 8
  %83 = invoke { <2 x float>, float } @_ZN3glmplIfLNS_9qualifierE0EEENS_3vecILi3ET_XT0_EEERKS4_S6_(ptr noundef nonnull align 4 dereferenceable(12) %7, ptr noundef nonnull align 4 dereferenceable(12) %18)
          to label %84 unwind label %93

84:                                               ; preds = %82
  %.fca.0.extract5 = extractvalue { <2 x float>, float } %83, 0
  %.fca.1.extract6 = extractvalue { <2 x float>, float } %83, 1
  store <2 x float> %.fca.0.extract5, ptr %17, align 8
  store float %.fca.1.extract6, ptr %.sroa.28.0..sroa_idx, align 8
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %19) #8
  %85 = fadd float %41, -3.000000e+00
  %86 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorIN3glm3vecILi3EfLNS0_9qualifierE0EEESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %indvars.iv69) #8
  %87 = invoke { <2 x float>, float } @_ZN3glmmlIfLNS_9qualifierE0EEENS_3vecILi3ET_XT0_EEES3_RKS4_(float noundef %85, ptr noundef nonnull align 4 dereferenceable(12) %86)
          to label %88 unwind label %95

88:                                               ; preds = %84
  %.fca.0.extract1 = extractvalue { <2 x float>, float } %87, 0
  %.fca.1.extract2 = extractvalue { <2 x float>, float } %87, 1
  store <2 x float> %.fca.0.extract1, ptr %19, align 8
  store float %.fca.1.extract2, ptr %.sroa.24.0..sroa_idx, align 8
  %89 = invoke { <2 x float>, float } @_ZN3glmplIfLNS_9qualifierE0EEENS_3vecILi3ET_XT0_EEERKS4_S6_(ptr noundef nonnull align 4 dereferenceable(12) %17, ptr noundef nonnull align 4 dereferenceable(12) %19)
          to label %90 unwind label %95

90:                                               ; preds = %88
  %.fca.0.extract = extractvalue { <2 x float>, float } %89, 0
  %.fca.1.extract = extractvalue { <2 x float>, float } %89, 1
  store <2 x float> %.fca.0.extract, ptr %16, align 8
  store float %.fca.1.extract, ptr %.sroa.2.0..sroa_idx, align 8
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %19) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %18) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %17) #8
  %91 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN3glm3vecILi3EfLNS_9qualifierE0EEdVIfEERS2_T_(ptr noundef nonnull align 4 dereferenceable(12) %16, float noundef %41)
  %92 = call noundef nonnull align 8 dereferenceable(64) ptr @_ZNSt6vectorI12VertexRecordSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %indvars.iv69) #8
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(12) %92, ptr noundef nonnull align 8 dereferenceable(12) %16, i64 12, i1 false), !tbaa.struct !5
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %16) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %10) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %7) #8
  call void @_ZN12VertexRecordD2Ev(ptr noundef nonnull align 8 dereferenceable(64) %6) #8
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %6) #8
  %indvars.iv.next70 = add nuw nsw i64 %indvars.iv69, 1
  %exitcond73.not = icmp eq i64 %indvars.iv.next70, %wide.trip.count72
  br i1 %exitcond73.not, label %._crit_edge66, label %34, !llvm.loop !22

93:                                               ; preds = %82, %._crit_edge63
  %94 = landingpad { ptr, i32 }
          cleanup
  br label %97

95:                                               ; preds = %88, %84
  %96 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %19) #8
  br label %97

97:                                               ; preds = %95, %93
  %.pn = phi { ptr, i32 } [ %96, %95 ], [ %94, %93 ]
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %18) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %17) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %16) #8
  br label %98

98:                                               ; preds = %97, %81
  %.pn53.pn = phi { ptr, i32 } [ %.pn53, %81 ], [ %.pn, %97 ]
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %10) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %7) #8
  call void @_ZN12VertexRecordD2Ev(ptr noundef nonnull align 8 dereferenceable(64) %6) #8
  br label %99

99:                                               ; preds = %98, %46
  %.pn53.pn.pn = phi { ptr, i32 } [ %.pn53.pn, %98 ], [ %47, %46 ]
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %6) #8
  br label %106

100:                                              ; preds = %._crit_edge66
  invoke void @_ZN7Surface11CCOutputOBJESt6vectorIN3glm3vecILi3EfLNS1_9qualifierE0EEESaIS4_EE(ptr dead_on_unwind writable sret(%class.Object) align 8 %0, ptr noundef nonnull align 8 dereferenceable(152) %1, ptr noundef nonnull %20)
          to label %101 unwind label %104

101:                                              ; preds = %100
  call void @_ZNSt6vectorIN3glm3vecILi3EfLNS0_9qualifierE0EEESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %20) #8
  call void @_ZNSt6vectorIN3glm3vecILi3EfLNS0_9qualifierE0EEESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #8
  call void @_ZNSt6vectorIN3glm3vecILi3EfLNS0_9qualifierE0EEESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #8
  ret void

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

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

106:                                              ; preds = %104, %102, %99
  %.pn53.pn.pn.pn = phi { ptr, i32 } [ %.pn53.pn.pn, %99 ], [ %105, %104 ], [ %103, %102 ]
  call void @_ZNSt6vectorIN3glm3vecILi3EfLNS0_9qualifierE0EEESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #8
  br label %107

107:                                              ; preds = %106, %30
  %.pn53.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn53.pn.pn.pn, %106 ], [ %31, %30 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #8
  call void @_ZNSt6vectorIN3glm3vecILi3EfLNS0_9qualifierE0EEESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #8
  resume { ptr, i32 } %.pn53.pn.pn.pn.pn
}

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

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

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

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


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