; LLVM IR from jasonlmfong/Model-Modifier :: Model-Modifier/src/scene/surface (Surface_DooSabin)

; 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.Object = type { %"struct.glm::vec", %"struct.glm::vec", %"class.std::vector", %"class.std::vector.2", %"class.std::vector.2", %"class.std::unordered_map" }
%"struct.glm::vec" = type { %union.anon, %union.anon.0, %union.anon.1 }
%union.anon = type { float }
%union.anon.0 = type { float }
%union.anon.1 = type { float }
%"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.std::vector.2" = type { %"struct.std::_Vector_base.3" }
%"struct.std::_Vector_base.3" = 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" = 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.std::__detail::_Hash_node_base" = type { ptr }
%"struct.std::__detail::_Prime_rehash_policy" = type { float, i64 }
%"class.std::unordered_map.31" = type { %"class.std::_Hashtable.32" }
%"class.std::_Hashtable.32" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"class.std::vector.80" = type { %"struct.std::_Vector_base.81" }
%"struct.std::_Vector_base.81" = 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 }
%struct.EdgeRecord = type { i32, i32, %"struct.glm::vec", %"class.std::vector.80" }
%struct.FaceRecord = type { %"struct.glm::vec", %"class.std::vector.80", %"class.std::unordered_map.85", %"class.std::vector.80" }
%"class.std::unordered_map.85" = type { %"class.std::_Hashtable.86" }
%"class.std::_Hashtable.86" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"class.std::initializer_list" = type { ptr, i64 }
%"class.std::allocator.82" = type { i8 }
%struct.VertexRecord = type { %"struct.glm::vec", %"class.std::vector.80", %"class.std::vector.80" }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"class.std::vector.99" = type { %"struct.std::_Vector_base.100" }
%"struct.std::_Vector_base.100" = type { %"struct.std::_Vector_base<glm::vec<2, float>, std::allocator<glm::vec<2, float>>>::_Vector_impl" }
%"struct.std::_Vector_base<glm::vec<2, float>, std::allocator<glm::vec<2, float>>>::_Vector_impl" = type { %"struct.std::_Vector_base<glm::vec<2, float>, std::allocator<glm::vec<2, float>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<glm::vec<2, float>, std::allocator<glm::vec<2, float>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.glm::vec.104" = type { %union.anon.105, %union.anon.106 }
%union.anon.105 = type { float }
%union.anon.106 = type { float }
%class.Surface = type { %"class.std::vector.51", %"class.std::vector.56", %"class.std::vector.61", %"struct.glm::vec", %"struct.glm::vec", %"class.std::unordered_map.66" }
%"class.std::vector.51" = type { %"struct.std::_Vector_base.52" }
%"struct.std::_Vector_base.52" = 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.56" = type { %"struct.std::_Vector_base.57" }
%"struct.std::_Vector_base.57" = 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.61" = type { %"struct.std::_Vector_base.62" }
%"struct.std::_Vector_base.62" = 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.66" = type { %"class.std::_Hashtable.67" }
%"class.std::_Hashtable.67" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7Surface11DSOutputOBJESt6vectorIS0_IN3glm3vecILi3EfLNS1_9qualifierE0EEESaIS4_EESaIS6_EESt13unordered_mapIjS6_St4hashIjESt8equal_toIjESaISt4pairIKjS6_EEESI_(ptr dead_on_unwind noalias writable sret(%class.Object) align 8 %0, ptr noundef nonnull align 8 dereferenceable(152) %1, ptr noundef %2, ptr noundef %3, ptr noundef %4) #0 align 2 personality ptr @__gxx_personality_v0 {
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca %"class.std::vector", align 8
  %12 = alloca %"class.std::unordered_map.31", align 8
  %13 = alloca %"class.std::vector.2", align 8
  %14 = alloca %"class.std::unordered_map", align 8
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca %"class.std::vector.80", align 8
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca %"struct.glm::vec", align 4
  %22 = alloca { <2 x float>, float }, align 4
  %23 = alloca ptr, align 8
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  %26 = alloca %struct.EdgeRecord, align 8
  %27 = alloca %"struct.glm::vec", align 4
  %28 = alloca i32, align 4
  %29 = alloca %"struct.glm::vec", align 4
  %30 = alloca %struct.FaceRecord, align 8
  %31 = alloca { <2 x float>, float }, align 8
  %32 = alloca i32, align 4
  %33 = alloca %"struct.glm::vec", align 4
  %34 = alloca { <2 x float>, float }, align 4
  %35 = alloca i32, align 4
  %36 = alloca %"struct.glm::vec", align 4
  %37 = alloca { <2 x float>, float }, align 4
  %38 = alloca i32, align 4
  %39 = alloca %"struct.glm::vec", align 4
  %40 = alloca { <2 x float>, float }, align 4
  %41 = alloca i32, align 4
  %42 = alloca %"struct.glm::vec", align 4
  %43 = alloca { <2 x float>, float }, align 4
  %44 = alloca %"struct.glm::vec", align 4
  %45 = alloca %"struct.glm::vec", align 4
  %46 = alloca %"struct.glm::vec", align 4
  %47 = alloca %"struct.glm::vec", align 4
  %48 = alloca { <2 x float>, float }, align 4
  %49 = alloca { <2 x float>, float }, align 4
  %50 = alloca { <2 x float>, float }, align 4
  %51 = alloca { <2 x float>, float }, align 8
  %52 = alloca %"class.std::vector.80", align 8
  %53 = alloca %"class.std::initializer_list", align 8
  %54 = alloca [4 x i32], align 4
  %55 = alloca %"class.std::allocator.82", align 1
  %56 = alloca %"class.std::vector.80", align 8
  %57 = alloca %"class.std::initializer_list", align 8
  %58 = alloca [4 x i32], align 4
  %59 = alloca %"class.std::allocator.82", align 1
  %60 = alloca i32, align 4
  %61 = alloca i32, align 4
  %62 = alloca %struct.VertexRecord, align 8
  %63 = alloca %"struct.glm::vec", align 4
  %64 = alloca ptr, align 8
  %65 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %66 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %67 = alloca i32, align 4
  %68 = alloca %"struct.glm::vec", align 4
  %69 = alloca %struct.FaceRecord, align 8
  %70 = alloca { <2 x float>, float }, align 8
  %71 = alloca %"class.std::vector", align 8
  %72 = alloca %"struct.glm::vec", align 4
  %73 = alloca i32, align 4
  %74 = alloca i32, align 4
  %75 = alloca %"struct.glm::vec", align 4
  %76 = alloca %"class.std::vector.99", align 8
  %77 = alloca %"class.std::vector", align 8
  %78 = alloca %"struct.glm::vec.104", align 4
  %79 = alloca %"class.std::vector.80", align 8
  %80 = alloca %"class.std::vector.99", align 8
  %81 = alloca %"struct.glm::vec.104", align 4
  %82 = alloca %"struct.glm::vec", align 4
  %83 = alloca %"struct.glm::vec", align 4
  %84 = alloca %"struct.glm::vec", align 4
  %85 = alloca %"struct.glm::vec", align 4
  %86 = alloca { <2 x float>, float }, align 4
  %87 = alloca { <2 x float>, float }, align 4
  %88 = alloca { <2 x float>, float }, align 4
  %89 = alloca { <2 x float>, float }, align 8
  %90 = alloca %"class.std::vector.80", align 8
  %91 = alloca i32, align 4
  %92 = alloca i32, align 4
  %93 = alloca %"struct.glm::vec", align 4
  %94 = alloca { <2 x float>, float }, align 4
  %95 = alloca i32, align 4
  %96 = alloca i32, align 4
  %97 = alloca %"struct.glm::vec", align 4
  %98 = alloca { <2 x float>, float }, align 4
  %99 = alloca i1, align 1
  store ptr %0, ptr %6, align 8
  store ptr %1, ptr %7, align 8, !tbaa !5
  store ptr %2, ptr %8, align 8, !tbaa !5
  store ptr %3, ptr %9, align 8, !tbaa !5
  store ptr %4, ptr %10, align 8, !tbaa !5
  %100 = load ptr, ptr %7, align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr %11) #10
  call void @_ZNSt6vectorIN3glm3vecILi3EfLNS0_9qualifierE0EEESaIS3_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #10
  call void @llvm.lifetime.start.p0(i64 56, ptr %12) #10
  call void @_ZNSt13unordered_mapIfS_IfS_IfjSt4hashIfESt8equal_toIfESaISt4pairIKfjEEES1_S3_SaIS4_IS5_S8_EEES1_S3_SaIS4_IS5_SB_EEEC2Ev(ptr noundef nonnull align 8 dereferenceable(56) %12) #10
  call void @llvm.lifetime.start.p0(i64 24, ptr %13) #10
  call void @_ZNSt6vectorIS_IjSaIjEESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #10
  call void @llvm.lifetime.start.p0(i64 56, ptr %14) #10
  call void @_ZNSt13unordered_mapIjjSt4hashIjESt8equal_toIjESaISt4pairIKjjEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(56) %14) #10
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #10
  store i32 0, ptr %15, align 4, !tbaa !9
  br label %101

101:                                              ; preds = %146, %5
  %102 = load i32, ptr %15, align 4, !tbaa !9
  %103 = zext i32 %102 to i64
  %104 = getelementptr inbounds %class.Surface, ptr %100, i32 0, i32 2
  %105 = call noundef i64 @_ZNKSt6vectorI10FaceRecordSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %104) #10
  %106 = icmp ult i64 %103, %105
  br i1 %106, label %108, label %107

107:                                              ; preds = %101
  store i32 2, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #10
  br label %154

108:                                              ; preds = %101
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #10
  %109 = load i32, ptr %15, align 4, !tbaa !9
  %110 = zext i32 %109 to i64
  %111 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IN3glm3vecILi3EfLNS0_9qualifierE0EEESaIS3_EESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %110) #10
  %112 = call noundef i64 @_ZNKSt6vectorIN3glm3vecILi3EfLNS0_9qualifierE0EEESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %111) #10
  %113 = trunc i64 %112 to i32
  store i32 %113, ptr %17, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 24, ptr %18) #10
  call void @_ZNSt6vectorIjSaIjEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %18) #10
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #10
  store i32 0, ptr %19, align 4, !tbaa !9
  br label %114

114:                                              ; preds = %133, %108
  %115 = load i32, ptr %19, align 4, !tbaa !9
  %116 = load i32, ptr %17, align 4, !tbaa !9
  %117 = icmp ult i32 %115, %116
  br i1 %117, label %119, label %118

118:                                              ; preds = %114
  store i32 5, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #10
  br label %140

119:                                              ; preds = %114
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #10
  %120 = load i32, ptr %15, align 4, !tbaa !9
  %121 = zext i32 %120 to i64
  %122 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IN3glm3vecILi3EfLNS0_9qualifierE0EEESaIS3_EESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %121) #10
  %123 = load i32, ptr %19, align 4, !tbaa !9
  %124 = zext i32 %123 to i64
  %125 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorIN3glm3vecILi3EfLNS0_9qualifierE0EEESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %122, i64 noundef %124) #10
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %21, ptr align 4 %125, i64 12, i1 false), !tbaa.struct !11
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %22, ptr align 4 %21, i64 12, i1 false)
  %126 = getelementptr inbounds { <2 x float>, float }, ptr %22, i32 0, i32 0
  %127 = load <2 x float>, ptr %126, align 4
  %128 = getelementptr inbounds { <2 x float>, float }, ptr %22, i32 0, i32 1
  %129 = load float, ptr %128, align 4
  %130 = invoke noundef i32 @_ZN7Surface12getVertIndexEN3glm3vecILi3EfLNS0_9qualifierE0EEERSt6vectorIS3_SaIS3_EERSt13unordered_mapIfS8_IfS8_IfjSt4hashIfESt8equal_toIfESaISt4pairIKfjEEESA_SC_SaISD_ISE_SH_EEESA_SC_SaISD_ISE_SK_EEE(ptr noundef nonnull align 8 dereferenceable(152) %100, <2 x float> %127, float %129, ptr noundef nonnull align 8 dereferenceable(24) %11, ptr noundef nonnull align 8 dereferenceable(56) %12)
          to label %131 unwind label %136

131:                                              ; preds = %119
  store i32 %130, ptr %20, align 4, !tbaa !9
  invoke void @_ZNSt6vectorIjSaIjEE9push_backERKj(ptr noundef nonnull align 8 dereferenceable(24) %18, ptr noundef nonnull align 4 dereferenceable(4) %20)
          to label %132 unwind label %136

132:                                              ; preds = %131
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #10
  br label %133

133:                                              ; preds = %132
  %134 = load i32, ptr %19, align 4, !tbaa !9
  %135 = add i32 %134, 1
  store i32 %135, ptr %19, align 4, !tbaa !9
  br label %114, !llvm.loop !13

136:                                              ; preds = %131, %119
  %137 = landingpad { ptr, i32 }
          cleanup
  %138 = extractvalue { ptr, i32 } %137, 0
  store ptr %138, ptr %23, align 8
  %139 = extractvalue { ptr, i32 } %137, 1
  store i32 %139, ptr %24, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #10
  br label %153

140:                                              ; preds = %118
  invoke void @_ZNSt6vectorIS_IjSaIjEESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %13, ptr noundef nonnull align 8 dereferenceable(24) %18)
          to label %141 unwind label %149

141:                                              ; preds = %140
  %142 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt13unordered_mapIjjSt4hashIjESt8equal_toIjESaISt4pairIKjjEEEixERS5_(ptr noundef nonnull align 8 dereferenceable(56) %14, ptr noundef nonnull align 4 dereferenceable(4) %17)
          to label %143 unwind label %149

143:                                              ; preds = %141
  %144 = load i32, ptr %142, align 4, !tbaa !9
  %145 = add i32 %144, 1
  store i32 %145, ptr %142, align 4, !tbaa !9
  call void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %18) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr %18) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #10
  br label %146

146:                                              ; preds = %143
  %147 = load i32, ptr %15, align 4, !tbaa !9
  %148 = add i32 %147, 1
  store i32 %148, ptr %15, align 4, !tbaa !9
  br label %101, !llvm.loop !15

149:                                              ; preds = %141, %140
  %150 = landingpad { ptr, i32 }
          cleanup
  %151 = extractvalue { ptr, i32 } %150, 0
  store ptr %151, ptr %23, align 8
  %152 = extractvalue { ptr, i32 } %150, 1
  store i32 %152, ptr %24, align 4
  br label %153

153:                                              ; preds = %149, %136
  call void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %18) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr %18) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #10
  br label %636

154:                                              ; preds = %107
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #10
  store i32 0, ptr %25, align 4, !tbaa !9
  br label %155

155:                                              ; preds = %366, %154
  %156 = load i32, ptr %25, align 4, !tbaa !9
  %157 = zext i32 %156 to i64
  %158 = call noundef i64 @_ZNKSt13unordered_mapIjSt6vectorIN3glm3vecILi3EfLNS1_9qualifierE0EEESaIS4_EESt4hashIjESt8equal_toIjESaISt4pairIKjS6_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(56) %4) #10
  %159 = icmp ult i64 %157, %158
  br i1 %159, label %161, label %160

160:                                              ; preds = %155
  store i32 8, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #10
  br label %370

161:                                              ; preds = %155
  call void @llvm.lifetime.start.p0(i64 48, ptr %26) #10
  %162 = getelementptr inbounds %class.Surface, ptr %100, i32 0, i32 1
  %163 = load i32, ptr %25, align 4, !tbaa !9
  %164 = zext i32 %163 to i64
  %165 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorI10EdgeRecordSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %162, i64 noundef %164) #10
  invoke void @_ZN10EdgeRecordC2ERKS_(ptr noundef nonnull align 8 dereferenceable(48) %26, ptr noundef nonnull align 8 dereferenceable(48) %165)
          to label %166 unwind label %175

166:                                              ; preds = %161
  %167 = getelementptr inbounds %struct.EdgeRecord, ptr %26, i32 0, i32 3
  %168 = call noundef i64 @_ZNKSt6vectorIjSaIjEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %167) #10
  %169 = icmp eq i64 %168, 2
  br i1 %169, label %170, label %365

170:                                              ; preds = %166
  call void @llvm.lifetime.start.p0(i64 12, ptr %27) #10
  call void @llvm.memset.p0.i64(ptr align 4 %27, i8 0, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #10
  store i32 0, ptr %28, align 4, !tbaa !9
  br label %171

171:                                              ; preds = %193, %170
  %172 = load i32, ptr %28, align 4, !tbaa !9
  %173 = icmp ult i32 %172, 2
  br i1 %173, label %179, label %174

174:                                              ; preds = %171
  store i32 11, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #10
  br label %205

175:                                              ; preds = %161
  %176 = landingpad { ptr, i32 }
          cleanup
  %177 = extractvalue { ptr, i32 } %176, 0
  store ptr %177, ptr %23, align 8
  %178 = extractvalue { ptr, i32 } %176, 1
  store i32 %178, ptr %24, align 4
  br label %369

179:                                              ; preds = %171
  call void @llvm.lifetime.start.p0(i64 12, ptr %29) #10
  %180 = getelementptr inbounds %class.Surface, ptr %100, i32 0, i32 2
  %181 = getelementptr inbounds %struct.EdgeRecord, ptr %26, i32 0, i32 3
  %182 = load i32, ptr %28, align 4, !tbaa !9
  %183 = zext i32 %182 to i64
  %184 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %181, i64 noundef %183) #10
  %185 = load i32, ptr %184, align 4, !tbaa !9
  %186 = zext i32 %185 to i64
  %187 = call noundef nonnull align 8 dereferenceable(120) ptr @_ZNSt6vectorI10FaceRecordSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %180, i64 noundef %186) #10
  invoke void @_ZN10FaceRecordC2ERKS_(ptr noundef nonnull align 8 dereferenceable(120) %30, ptr noundef nonnull align 8 dereferenceable(120) %187)
          to label %188 unwind label %196

188:                                              ; preds = %179
  %189 = invoke { <2 x float>, float } @_ZN7Surface17ComputeFaceNormalE10FaceRecord(ptr noundef nonnull align 8 dereferenceable(152) %100, ptr noundef %30)
          to label %190 unwind label %200

190:                                              ; preds = %188
  store { <2 x float>, float } %189, ptr %31, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %29, ptr align 8 %31, i64 12, i1 false)
  %191 = invoke noundef nonnull align 4 dereferenceable(12) ptr @_ZN3glm3vecILi3EfLNS_9qualifierE0EEpLIfEERS2_RKNS0_ILi3ET_LS1_0EEE(ptr noundef nonnull align 4 dereferenceable(12) %27, ptr noundef nonnull align 4 dereferenceable(12) %29)
          to label %192 unwind label %200

192:                                              ; preds = %190
  call void @_ZN10FaceRecordD2Ev(ptr noundef nonnull align 8 dereferenceable(120) %30) #10
  call void @llvm.lifetime.end.p0(i64 12, ptr %29) #10
  br label %193

193:                                              ; preds = %192
  %194 = load i32, ptr %28, align 4, !tbaa !9
  %195 = add i32 %194, 1
  store i32 %195, ptr %28, align 4, !tbaa !9
  br label %171, !llvm.loop !16

196:                                              ; preds = %179
  %197 = landingpad { ptr, i32 }
          cleanup
  %198 = extractvalue { ptr, i32 } %197, 0
  store ptr %198, ptr %23, align 8
  %199 = extractvalue { ptr, i32 } %197, 1
  store i32 %199, ptr %24, align 4
  br label %204

200:                                              ; preds = %190, %188
  %201 = landingpad { ptr, i32 }
          cleanup
  %202 = extractvalue { ptr, i32 } %201, 0
  store ptr %202, ptr %23, align 8
  %203 = extractvalue { ptr, i32 } %201, 1
  store i32 %203, ptr %24, align 4
  call void @_ZN10FaceRecordD2Ev(ptr noundef nonnull align 8 dereferenceable(120) %30) #10
  br label %204

204:                                              ; preds = %200, %196
  call void @llvm.lifetime.end.p0(i64 12, ptr %29) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #10
  br label %364

205:                                              ; preds = %174
  %206 = invoke noundef nonnull align 4 dereferenceable(12) ptr @_ZN3glm3vecILi3EfLNS_9qualifierE0EEdVIfEERS2_T_(ptr noundef nonnull align 4 dereferenceable(12) %27, float noundef 2.000000e+00)
          to label %207 unwind label %291

207:                                              ; preds = %205
  %208 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt13unordered_mapIjSt6vectorIN3glm3vecILi3EfLNS1_9qualifierE0EEESaIS4_EESt4hashIjESt8equal_toIjESaISt4pairIKjS6_EEEixERSC_(ptr noundef nonnull align 8 dereferenceable(56) %4, ptr noundef nonnull align 4 dereferenceable(4) %25)
          to label %209 unwind label %291

209:                                              ; preds = %207
  %210 = call noundef i64 @_ZNKSt6vectorIN3glm3vecILi3EfLNS0_9qualifierE0EEESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %208) #10
  %211 = icmp eq i64 %210, 4
  br i1 %211, label %212, label %363

212:                                              ; preds = %209
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #10
  %213 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt13unordered_mapIjSt6vectorIN3glm3vecILi3EfLNS1_9qualifierE0EEESaIS4_EESt4hashIjESt8equal_toIjESaISt4pairIKjS6_EEEixERSC_(ptr noundef nonnull align 8 dereferenceable(56) %4, ptr noundef nonnull align 4 dereferenceable(4) %25)
          to label %214 unwind label %295

214:                                              ; preds = %212
  %215 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorIN3glm3vecILi3EfLNS0_9qualifierE0EEESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %213, i64 noundef 0) #10
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %33, ptr align 4 %215, i64 12, i1 false), !tbaa.struct !11
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %34, ptr align 4 %33, i64 12, i1 false)
  %216 = getelementptr inbounds { <2 x float>, float }, ptr %34, i32 0, i32 0
  %217 = load <2 x float>, ptr %216, align 4
  %218 = getelementptr inbounds { <2 x float>, float }, ptr %34, i32 0, i32 1
  %219 = load float, ptr %218, align 4
  %220 = invoke noundef i32 @_ZN7Surface12getVertIndexEN3glm3vecILi3EfLNS0_9qualifierE0EEERSt6vectorIS3_SaIS3_EERSt13unordered_mapIfS8_IfS8_IfjSt4hashIfESt8equal_toIfESaISt4pairIKfjEEESA_SC_SaISD_ISE_SH_EEESA_SC_SaISD_ISE_SK_EEE(ptr noundef nonnull align 8 dereferenceable(152) %100, <2 x float> %217, float %219, ptr noundef nonnull align 8 dereferenceable(24) %11, ptr noundef nonnull align 8 dereferenceable(56) %12)
          to label %221 unwind label %295

221:                                              ; preds = %214
  store i32 %220, ptr %32, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %35) #10
  %222 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt13unordered_mapIjSt6vectorIN3glm3vecILi3EfLNS1_9qualifierE0EEESaIS4_EESt4hashIjESt8equal_toIjESaISt4pairIKjS6_EEEixERSC_(ptr noundef nonnull align 8 dereferenceable(56) %4, ptr noundef nonnull align 4 dereferenceable(4) %25)
          to label %223 unwind label %299

223:                                              ; preds = %221
  %224 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorIN3glm3vecILi3EfLNS0_9qualifierE0EEESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %222, i64 noundef 1) #10
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %36, ptr align 4 %224, i64 12, i1 false), !tbaa.struct !11
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %37, ptr align 4 %36, i64 12, i1 false)
  %225 = getelementptr inbounds { <2 x float>, float }, ptr %37, i32 0, i32 0
  %226 = load <2 x float>, ptr %225, align 4
  %227 = getelementptr inbounds { <2 x float>, float }, ptr %37, i32 0, i32 1
  %228 = load float, ptr %227, align 4
  %229 = invoke noundef i32 @_ZN7Surface12getVertIndexEN3glm3vecILi3EfLNS0_9qualifierE0EEERSt6vectorIS3_SaIS3_EERSt13unordered_mapIfS8_IfS8_IfjSt4hashIfESt8equal_toIfESaISt4pairIKfjEEESA_SC_SaISD_ISE_SH_EEESA_SC_SaISD_ISE_SK_EEE(ptr noundef nonnull align 8 dereferenceable(152) %100, <2 x float> %226, float %228, ptr noundef nonnull align 8 dereferenceable(24) %11, ptr noundef nonnull align 8 dereferenceable(56) %12)
          to label %230 unwind label %299

230:                                              ; preds = %223
  store i32 %229, ptr %35, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %38) #10
  %231 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt13unordered_mapIjSt6vectorIN3glm3vecILi3EfLNS1_9qualifierE0EEESaIS4_EESt4hashIjESt8equal_toIjESaISt4pairIKjS6_EEEixERSC_(ptr noundef nonnull align 8 dereferenceable(56) %4, ptr noundef nonnull align 4 dereferenceable(4) %25)
          to label %232 unwind label %303

232:                                              ; preds = %230
  %233 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorIN3glm3vecILi3EfLNS0_9qualifierE0EEESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %231, i64 noundef 2) #10
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %39, ptr align 4 %233, i64 12, i1 false), !tbaa.struct !11
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %40, ptr align 4 %39, i64 12, i1 false)
  %234 = getelementptr inbounds { <2 x float>, float }, ptr %40, i32 0, i32 0
  %235 = load <2 x float>, ptr %234, align 4
  %236 = getelementptr inbounds { <2 x float>, float }, ptr %40, i32 0, i32 1
  %237 = load float, ptr %236, align 4
  %238 = invoke noundef i32 @_ZN7Surface12getVertIndexEN3glm3vecILi3EfLNS0_9qualifierE0EEERSt6vectorIS3_SaIS3_EERSt13unordered_mapIfS8_IfS8_IfjSt4hashIfESt8equal_toIfESaISt4pairIKfjEEESA_SC_SaISD_ISE_SH_EEESA_SC_SaISD_ISE_SK_EEE(ptr noundef nonnull align 8 dereferenceable(152) %100, <2 x float> %235, float %237, ptr noundef nonnull align 8 dereferenceable(24) %11, ptr noundef nonnull align 8 dereferenceable(56) %12)
          to label %239 unwind label %303

239:                                              ; preds = %232
  store i32 %238, ptr %38, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %41) #10
  %240 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt13unordered_mapIjSt6vectorIN3glm3vecILi3EfLNS1_9qualifierE0EEESaIS4_EESt4hashIjESt8equal_toIjESaISt4pairIKjS6_EEEixERSC_(ptr noundef nonnull align 8 dereferenceable(56) %4, ptr noundef nonnull align 4 dereferenceable(4) %25)
          to label %241 unwind label %307

241:                                              ; preds = %239
  %242 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorIN3glm3vecILi3EfLNS0_9qualifierE0EEESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %240, i64 noundef 3) #10
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %42, ptr align 4 %242, i64 12, i1 false), !tbaa.struct !11
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %43, ptr align 4 %42, i64 12, i1 false)
  %243 = getelementptr inbounds { <2 x float>, float }, ptr %43, i32 0, i32 0
  %244 = load <2 x float>, ptr %243, align 4
  %245 = getelementptr inbounds { <2 x float>, float }, ptr %43, i32 0, i32 1
  %246 = load float, ptr %245, align 4
  %247 = invoke noundef i32 @_ZN7Surface12getVertIndexEN3glm3vecILi3EfLNS0_9qualifierE0EEERSt6vectorIS3_SaIS3_EERSt13unordered_mapIfS8_IfS8_IfjSt4hashIfESt8equal_toIfESaISt4pairIKfjEEESA_SC_SaISD_ISE_SH_EEESA_SC_SaISD_ISE_SK_EEE(ptr noundef nonnull align 8 dereferenceable(152) %100, <2 x float> %244, float %246, ptr noundef nonnull align 8 dereferenceable(24) %11, ptr noundef nonnull align 8 dereferenceable(56) %12)
          to label %248 unwind label %307

248:                                              ; preds = %241
  store i32 %247, ptr %41, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 12, ptr %44) #10
  %249 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt13unordered_mapIjSt6vectorIN3glm3vecILi3EfLNS1_9qualifierE0EEESaIS4_EESt4hashIjESt8equal_toIjESaISt4pairIKjS6_EEEixERSC_(ptr noundef nonnull align 8 dereferenceable(56) %4, ptr noundef nonnull align 4 dereferenceable(4) %25)
          to label %250 unwind label %311

250:                                              ; preds = %248
  %251 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorIN3glm3vecILi3EfLNS0_9qualifierE0EEESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %249, i64 noundef 0) #10
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %45, ptr align 4 %251, i64 12, i1 false), !tbaa.struct !11
  %252 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt13unordered_mapIjSt6vectorIN3glm3vecILi3EfLNS1_9qualifierE0EEESaIS4_EESt4hashIjESt8equal_toIjESaISt4pairIKjS6_EEEixERSC_(ptr noundef nonnull align 8 dereferenceable(56) %4, ptr noundef nonnull align 4 dereferenceable(4) %25)
          to label %253 unwind label %311

253:                                              ; preds = %250
  %254 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorIN3glm3vecILi3EfLNS0_9qualifierE0EEESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %252, i64 noundef 1) #10
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %46, ptr align 4 %254, i64 12, i1 false), !tbaa.struct !11
  %255 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt13unordered_mapIjSt6vectorIN3glm3vecILi3EfLNS1_9qualifierE0EEESaIS4_EESt4hashIjESt8equal_toIjESaISt4pairIKjS6_EEEixERSC_(ptr noundef nonnull align 8 dereferenceable(56) %4, ptr noundef nonnull align 4 dereferenceable(4) %25)
          to label %256 unwind label %311

256:                                              ; preds = %253
  %257 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorIN3glm3vecILi3EfLNS0_9qualifierE0EEESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %255, i64 noundef 2) #10
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %47, ptr align 4 %257, i64 12, i1 false), !tbaa.struct !11
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %48, ptr align 4 %45, i64 12, i1 false)
  %258 = getelementptr inbounds { <2 x float>, float }, ptr %48, i32 0, i32 0
  %259 = load <2 x float>, ptr %258, align 4
  %260 = getelementptr inbounds { <2 x float>, float }, ptr %48, i32 0, i32 1
  %261 = load float, ptr %260, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %49, ptr align 4 %46, i64 12, i1 false)
  %262 = getelementptr inbounds { <2 x float>, float }, ptr %49, i32 0, i32 0
  %263 = load <2 x float>, ptr %262, align 4
  %264 = getelementptr inbounds { <2 x float>, float }, ptr %49, i32 0, i32 1
  %265 = load float, ptr %264, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %50, ptr align 4 %47, i64 12, i1 false)
  %266 = getelementptr inbounds { <2 x float>, float }, ptr %50, i32 0, i32 0
  %267 = load <2 x float>, ptr %266, align 4
  %268 = getelementptr inbounds { <2 x float>, float }, ptr %50, i32 0, i32 1
  %269 = load float, ptr %268, align 4
  %270 = invoke { <2 x float>, float } @_ZN7Surface17ComputeFaceNormalEN3glm3vecILi3EfLNS0_9qualifierE0EEES3_S3_(ptr noundef nonnull align 8 dereferenceable(152) %100, <2 x float> %259, float %261, <2 x float> %263, float %265, <2 x float> %267, float %269)
          to label %271 unwind label %311

271:                                              ; preds = %256
  store { <2 x float>, float } %270, ptr %51, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %44, ptr align 8 %51, i64 12, i1 false)
  %272 = invoke noundef float @_ZN3glm3dotILi3EfLNS_9qualifierE0EEET0_RKNS_3vecIXT_ES2_XT1_EEES6_(ptr noundef nonnull align 4 dereferenceable(12) %44, ptr noundef nonnull align 4 dereferenceable(12) %27)
          to label %273 unwind label %311

273:                                              ; preds = %271
  %274 = fcmp ogt float %272, 0.000000e+00
  br i1 %274, label %275, label %324

275:                                              ; preds = %273
  call void @llvm.lifetime.start.p0(i64 24, ptr %52) #10
  call void @llvm.lifetime.start.p0(i64 16, ptr %54) #10
  %276 = load i32, ptr %32, align 4, !tbaa !9
  store i32 %276, ptr %54, align 4, !tbaa !9
  %277 = getelementptr inbounds i32, ptr %54, i64 1
  %278 = load i32, ptr %35, align 4, !tbaa !9
  store i32 %278, ptr %277, align 4, !tbaa !9
  %279 = getelementptr inbounds i32, ptr %54, i64 2
  %280 = load i32, ptr %38, align 4, !tbaa !9
  store i32 %280, ptr %279, align 4, !tbaa !9
  %281 = getelementptr inbounds i32, ptr %54, i64 3
  %282 = load i32, ptr %41, align 4, !tbaa !9
  store i32 %282, ptr %281, align 4, !tbaa !9
  %283 = getelementptr inbounds %"class.std::initializer_list", ptr %53, i32 0, i32 0
  store ptr %54, ptr %283, align 8, !tbaa !17
  %284 = getelementptr inbounds %"class.std::initializer_list", ptr %53, i32 0, i32 1
  store i64 4, ptr %284, align 8, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 1, ptr %55) #10
  call void @_ZNSaIjEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %55) #10
  %285 = getelementptr inbounds { ptr, i64 }, ptr %53, i32 0, i32 0
  %286 = load ptr, ptr %285, align 8
  %287 = getelementptr inbounds { ptr, i64 }, ptr %53, i32 0, i32 1
  %288 = load i64, ptr %287, align 8
  invoke void @_ZNSt6vectorIjSaIjEEC2ESt16initializer_listIjERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %52, ptr %286, i64 %288, ptr noundef nonnull align 1 dereferenceable(1) %55)
          to label %289 unwind label %315

289:                                              ; preds = %275
  invoke void @_ZNSt6vectorIS_IjSaIjEESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %13, ptr noundef nonnull align 8 dereferenceable(24) %52)
          to label %290 unwind label %319

290:                                              ; preds = %289
  call void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %52) #10
  call void @_ZNSt15__new_allocatorIjED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %55) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr %55) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr %54) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr %52) #10
  br label %349

291:                                              ; preds = %207, %205
  %292 = landingpad { ptr, i32 }
          cleanup
  %293 = extractvalue { ptr, i32 } %292, 0
  store ptr %293, ptr %23, align 8
  %294 = extractvalue { ptr, i32 } %292, 1
  store i32 %294, ptr %24, align 4
  br label %364

295:                                              ; preds = %214, %212
  %296 = landingpad { ptr, i32 }
          cleanup
  %297 = extractvalue { ptr, i32 } %296, 0
  store ptr %297, ptr %23, align 8
  %298 = extractvalue { ptr, i32 } %296, 1
  store i32 %298, ptr %24, align 4
  br label %362

299:                                              ; preds = %223, %221
  %300 = landingpad { ptr, i32 }
          cleanup
  %301 = extractvalue { ptr, i32 } %300, 0
  store ptr %301, ptr %23, align 8
  %302 = extractvalue { ptr, i32 } %300, 1
  store i32 %302, ptr %24, align 4
  br label %361

303:                                              ; preds = %232, %230
  %304 = landingpad { ptr, i32 }
          cleanup
  %305 = extractvalue { ptr, i32 } %304, 0
  store ptr %305, ptr %23, align 8
  %306 = extractvalue { ptr, i32 } %304, 1
  store i32 %306, ptr %24, align 4
  br label %360

307:                                              ; preds = %241, %239
  %308 = landingpad { ptr, i32 }
          cleanup
  %309 = extractvalue { ptr, i32 } %308, 0
  store ptr %309, ptr %23, align 8
  %310 = extractvalue { ptr, i32 } %308, 1
  store i32 %310, ptr %24, align 4
  br label %359

311:                                              ; preds = %271, %256, %253, %250, %248
  %312 = landingpad { ptr, i32 }
          cleanup
  %313 = extractvalue { ptr, i32 } %312, 0
  store ptr %313, ptr %23, align 8
  %314 = extractvalue { ptr, i32 } %312, 1
  store i32 %314, ptr %24, align 4
  br label %358

315:                                              ; preds = %275
  %316 = landingpad { ptr, i32 }
          cleanup
  %317 = extractvalue { ptr, i32 } %316, 0
  store ptr %317, ptr %23, align 8
  %318 = extractvalue { ptr, i32 } %316, 1
  store i32 %318, ptr %24, align 4
  br label %323

319:                                              ; preds = %289
  %320 = landingpad { ptr, i32 }
          cleanup
  %321 = extractvalue { ptr, i32 } %320, 0
  store ptr %321, ptr %23, align 8
  %322 = extractvalue { ptr, i32 } %320, 1
  store i32 %322, ptr %24, align 4
  call void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %52) #10
  br label %323

323:                                              ; preds = %319, %315
  call void @_ZNSt15__new_allocatorIjED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %55) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr %55) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr %54) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr %52) #10
  br label %358

324:                                              ; preds = %273
  call void @llvm.lifetime.start.p0(i64 24, ptr %56) #10
  call void @llvm.lifetime.start.p0(i64 16, ptr %58) #10
  %325 = load i32, ptr %41, align 4, !tbaa !9
  store i32 %325, ptr %58, align 4, !tbaa !9
  %326 = getelementptr inbounds i32, ptr %58, i64 1
  %327 = load i32, ptr %38, align 4, !tbaa !9
  store i32 %327, ptr %326, align 4, !tbaa !9
  %328 = getelementptr inbounds i32, ptr %58, i64 2
  %329 = load i32, ptr %35, align 4, !tbaa !9
  store i32 %329, ptr %328, align 4, !tbaa !9
  %330 = getelementptr inbounds i32, ptr %58, i64 3
  %331 = load i32, ptr %32, align 4, !tbaa !9
  store i32 %331, ptr %330, align 4, !tbaa !9
  %332 = getelementptr inbounds %"class.std::initializer_list", ptr %57, i32 0, i32 0
  store ptr %58, ptr %332, align 8, !tbaa !17
  %333 = getelementptr inbounds %"class.std::initializer_list", ptr %57, i32 0, i32 1
  store i64 4, ptr %333, align 8, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 1, ptr %59) #10
  call void @_ZNSaIjEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %59) #10
  %334 = getelementptr inbounds { ptr, i64 }, ptr %57, i32 0, i32 0
  %335 = load ptr, ptr %334, align 8
  %336 = getelementptr inbounds { ptr, i64 }, ptr %57, i32 0, i32 1
  %337 = load i64, ptr %336, align 8
  invoke void @_ZNSt6vectorIjSaIjEEC2ESt16initializer_listIjERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %56, ptr %335, i64 %337, ptr noundef nonnull align 1 dereferenceable(1) %59)
          to label %338 unwind label %340

338:                                              ; preds = %324
  invoke void @_ZNSt6vectorIS_IjSaIjEESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %13, ptr noundef nonnull align 8 dereferenceable(24) %56)
          to label %339 unwind label %344

339:                                              ; preds = %338
  call void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %56) #10
  call void @_ZNSt15__new_allocatorIjED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %59) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr %59) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr %58) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr %56) #10
  br label %349

340:                                              ; preds = %324
  %341 = landingpad { ptr, i32 }
          cleanup
  %342 = extractvalue { ptr, i32 } %341, 0
  store ptr %342, ptr %23, align 8
  %343 = extractvalue { ptr, i32 } %341, 1
  store i32 %343, ptr %24, align 4
  br label %348

344:                                              ; preds = %338
  %345 = landingpad { ptr, i32 }
          cleanup
  %346 = extractvalue { ptr, i32 } %345, 0
  store ptr %346, ptr %23, align 8
  %347 = extractvalue { ptr, i32 } %345, 1
  store i32 %347, ptr %24, align 4
  call void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %56) #10
  br label %348

348:                                              ; preds = %344, %340
  call void @_ZNSt15__new_allocatorIjED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %59) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr %59) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr %58) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr %56) #10
  br label %358

349:                                              ; preds = %339, %290
  call void @llvm.lifetime.start.p0(i64 4, ptr %60) #10
  store i32 4, ptr %60, align 4, !tbaa !9
  %350 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt13unordered_mapIjjSt4hashIjESt8equal_toIjESaISt4pairIKjjEEEixEOj(ptr noundef nonnull align 8 dereferenceable(56) %14, ptr noundef nonnull align 4 dereferenceable(4) %60)
          to label %351 unwind label %354

351:                                              ; preds = %349
  %352 = load i32, ptr %350, align 4, !tbaa !9
  %353 = add i32 %352, 1
  store i32 %353, ptr %350, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %60) #10
  call void @llvm.lifetime.end.p0(i64 12, ptr %44) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %41) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #10
  br label %363

354:                                              ; preds = %349
  %355 = landingpad { ptr, i32 }
          cleanup
  %356 = extractvalue { ptr, i32 } %355, 0
  store ptr %356, ptr %23, align 8
  %357 = extractvalue { ptr, i32 } %355, 1
  store i32 %357, ptr %24, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %60) #10
  br label %358

358:                                              ; preds = %354, %348, %323, %311
  call void @llvm.lifetime.end.p0(i64 12, ptr %44) #10
  br label %359

359:                                              ; preds = %358, %307
  call void @llvm.lifetime.end.p0(i64 4, ptr %41) #10
  br label %360

360:                                              ; preds = %359, %303
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #10
  br label %361

361:                                              ; preds = %360, %299
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #10
  br label %362

362:                                              ; preds = %361, %295
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #10
  br label %364

363:                                              ; preds = %351, %209
  call void @llvm.lifetime.end.p0(i64 12, ptr %27) #10
  br label %365

364:                                              ; preds = %362, %291, %204
  call void @llvm.lifetime.end.p0(i64 12, ptr %27) #10
  call void @_ZN10EdgeRecordD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %26) #10
  br label %369

365:                                              ; preds = %363, %166
  call void @_ZN10EdgeRecordD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %26) #10
  call void @llvm.lifetime.end.p0(i64 48, ptr %26) #10
  br label %366

366:                                              ; preds = %365
  %367 = load i32, ptr %25, align 4, !tbaa !9
  %368 = add i32 %367, 1
  store i32 %368, ptr %25, align 4, !tbaa !9
  br label %155, !llvm.loop !21

369:                                              ; preds = %364, %175
  call void @llvm.lifetime.end.p0(i64 48, ptr %26) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #10
  br label %636

370:                                              ; preds = %160
  call void @llvm.lifetime.start.p0(i64 4, ptr %61) #10
  store i32 0, ptr %61, align 4, !tbaa !9
  br label %371

371:                                              ; preds = %599, %370
  %372 = load i32, ptr %61, align 4, !tbaa !9
  %373 = zext i32 %372 to i64
  %374 = getelementptr inbounds %class.Surface, ptr %100, i32 0, i32 0
  %375 = call noundef i64 @_ZNKSt6vectorI12VertexRecordSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %374) #10
  %376 = icmp ult i64 %373, %375
  br i1 %376, label %378, label %377

377:                                              ; preds = %371
  store i32 14, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %61) #10
  br label %609

378:                                              ; preds = %371
  call void @llvm.lifetime.start.p0(i64 64, ptr %62) #10
  %379 = getelementptr inbounds %class.Surface, ptr %100, i32 0, i32 0
  %380 = load i32, ptr %61, align 4, !tbaa !9
  %381 = zext i32 %380 to i64
  %382 = call noundef nonnull align 8 dereferenceable(64) ptr @_ZNSt6vectorI12VertexRecordSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %379, i64 noundef %381) #10
  invoke void @_ZN12VertexRecordC2ERKS_(ptr noundef nonnull align 8 dereferenceable(64) %62, ptr noundef nonnull align 8 dereferenceable(64) %382)
          to label %383 unwind label %388

383:                                              ; preds = %378
  %384 = getelementptr inbounds %struct.VertexRecord, ptr %62, i32 0, i32 2
  %385 = call noundef i64 @_ZNKSt6vectorIjSaIjEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %384) #10
  %386 = icmp ult i64 %385, 3
  br i1 %386, label %387, label %392

387:                                              ; preds = %383
  store i32 16, ptr %16, align 4
  br label %596

388:                                              ; preds = %378
  %389 = landingpad { ptr, i32 }
          cleanup
  %390 = extractvalue { ptr, i32 } %389, 0
  store ptr %390, ptr %23, align 8
  %391 = extractvalue { ptr, i32 } %389, 1
  store i32 %391, ptr %24, align 4
  br label %608

392:                                              ; preds = %383
  call void @llvm.lifetime.start.p0(i64 12, ptr %63) #10
  call void @llvm.memset.p0.i64(ptr align 4 %63, i8 0, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 8, ptr %64) #10
  %393 = getelementptr inbounds %struct.VertexRecord, ptr %62, i32 0, i32 2
  store ptr %393, ptr %64, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %65) #10
  %394 = load ptr, ptr %64, align 8, !tbaa !5
  %395 = call ptr @_ZNSt6vectorIjSaIjEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %394) #10
  %396 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %65, i32 0, i32 0
  store ptr %395, ptr %396, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %66) #10
  %397 = load ptr, ptr %64, align 8, !tbaa !5
  %398 = call ptr @_ZNSt6vectorIjSaIjEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %397) #10
  %399 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %66, i32 0, i32 0
  store ptr %398, ptr %399, align 8
  br label %400

400:                                              ; preds = %415, %392
  %401 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPjSt6vectorIjSaIjEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %65, ptr noundef nonnull align 8 dereferenceable(8) %66) #10
  br i1 %401, label %403, label %402

402:                                              ; preds = %400
  store i32 17, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %66) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %65) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %64) #10
  br label %426

403:                                              ; preds = %400
  call void @llvm.lifetime.start.p0(i64 4, ptr %67) #10
  %404 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPjSt6vectorIjSaIjEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %65) #10
  %405 = load i32, ptr %404, align 4, !tbaa !9
  store i32 %405, ptr %67, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 12, ptr %68) #10
  %406 = getelementptr inbounds %class.Surface, ptr %100, i32 0, i32 2
  %407 = load i32, ptr %67, align 4, !tbaa !9
  %408 = zext i32 %407 to i64
  %409 = call noundef nonnull align 8 dereferenceable(120) ptr @_ZNSt6vectorI10FaceRecordSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %406, i64 noundef %408) #10
  invoke void @_ZN10FaceRecordC2ERKS_(ptr noundef nonnull align 8 dereferenceable(120) %69, ptr noundef nonnull align 8 dereferenceable(120) %409)
          to label %410 unwind label %417

410:                                              ; preds = %403
  %411 = invoke { <2 x float>, float } @_ZN7Surface17ComputeFaceNormalE10FaceRecord(ptr noundef nonnull align 8 dereferenceable(152) %100, ptr noundef %69)
          to label %412 unwind label %421

412:                                              ; preds = %410
  store { <2 x float>, float } %411, ptr %70, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %68, ptr align 8 %70, i64 12, i1 false)
  %413 = invoke noundef nonnull align 4 dereferenceable(12) ptr @_ZN3glm3vecILi3EfLNS_9qualifierE0EEpLIfEERS2_RKNS0_ILi3ET_LS1_0EEE(ptr noundef nonnull align 4 dereferenceable(12) %63, ptr noundef nonnull align 4 dereferenceable(12) %68)
          to label %414 unwind label %421

414:                                              ; preds = %412
  call void @_ZN10FaceRecordD2Ev(ptr noundef nonnull align 8 dereferenceable(120) %69) #10
  call void @llvm.lifetime.end.p0(i64 12, ptr %68) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %67) #10
  br label %415

415:                                              ; preds = %414
  %416 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPjSt6vectorIjSaIjEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %65) #10
  br label %400

417:                                              ; preds = %403
  %418 = landingpad { ptr, i32 }
          cleanup
  %419 = extractvalue { ptr, i32 } %418, 0
  store ptr %419, ptr %23, align 8
  %420 = extractvalue { ptr, i32 } %418, 1
  store i32 %420, ptr %24, align 4
  br label %425

421:                                              ; preds = %412, %410
  %422 = landingpad { ptr, i32 }
          cleanup
  %423 = extractvalue { ptr, i32 } %422, 0
  store ptr %423, ptr %23, align 8
  %424 = extractvalue { ptr, i32 } %422, 1
  store i32 %424, ptr %24, align 4
  call void @_ZN10FaceRecordD2Ev(ptr noundef nonnull align 8 dereferenceable(120) %69) #10
  br label %425

425:                                              ; preds = %421, %417
  call void @llvm.lifetime.end.p0(i64 12, ptr %68) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %67) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %66) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %65) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %64) #10
  br label %607

426:                                              ; preds = %402
  %427 = getelementptr inbounds %struct.VertexRecord, ptr %62, i32 0, i32 2
  %428 = call noundef i64 @_ZNKSt6vectorIjSaIjEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %427) #10
  %429 = uitofp i64 %428 to float
  %430 = invoke noundef nonnull align 4 dereferenceable(12) ptr @_ZN3glm3vecILi3EfLNS_9qualifierE0EEdVIfEERS2_T_(ptr noundef nonnull align 4 dereferenceable(12) %63, float noundef %429)
          to label %431 unwind label %441

431:                                              ; preds = %426
  call void @llvm.lifetime.start.p0(i64 24, ptr %71) #10
  call void @_ZNSt6vectorIN3glm3vecILi3EfLNS0_9qualifierE0EEESaIS3_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %71) #10
  call void @llvm.lifetime.start.p0(i64 12, ptr %72) #10
  call void @llvm.memset.p0.i64(ptr align 4 %72, i8 0, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %73) #10
  %432 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt13unordered_mapIjSt6vectorIN3glm3vecILi3EfLNS1_9qualifierE0EEESaIS4_EESt4hashIjESt8equal_toIjESaISt4pairIKjS6_EEEixERSC_(ptr noundef nonnull align 8 dereferenceable(56) %3, ptr noundef nonnull align 4 dereferenceable(4) %61)
          to label %433 unwind label %445

433:                                              ; preds = %431
  %434 = call noundef i64 @_ZNKSt6vectorIN3glm3vecILi3EfLNS0_9qualifierE0EEESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %432) #10
  %435 = trunc i64 %434 to i32
  store i32 %435, ptr %73, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %74) #10
  store i32 0, ptr %74, align 4, !tbaa !9
  br label %436

436:                                              ; preds = %458, %433
  %437 = load i32, ptr %74, align 4, !tbaa !9
  %438 = load i32, ptr %73, align 4, !tbaa !9
  %439 = icmp ult i32 %437, %438
  br i1 %439, label %449, label %440

440:                                              ; preds = %436
  store i32 19, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %74) #10
  br label %465

441:                                              ; preds = %426
  %442 = landingpad { ptr, i32 }
          cleanup
  %443 = extractvalue { ptr, i32 } %442, 0
  store ptr %443, ptr %23, align 8
  %444 = extractvalue { ptr, i32 } %442, 1
  store i32 %444, ptr %24, align 4
  br label %607

445:                                              ; preds = %468, %465, %431
  %446 = landingpad { ptr, i32 }
          cleanup
  %447 = extractvalue { ptr, i32 } %446, 0
  store ptr %447, ptr %23, align 8
  %448 = extractvalue { ptr, i32 } %446, 1
  store i32 %448, ptr %24, align 4
  br label %606

449:                                              ; preds = %436
  call void @llvm.lifetime.start.p0(i64 12, ptr %75) #10
  %450 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt13unordered_mapIjSt6vectorIN3glm3vecILi3EfLNS1_9qualifierE0EEESaIS4_EESt4hashIjESt8equal_toIjESaISt4pairIKjS6_EEEixERSC_(ptr noundef nonnull align 8 dereferenceable(56) %3, ptr noundef nonnull align 4 dereferenceable(4) %61)
          to label %451 unwind label %461

451:                                              ; preds = %449
  %452 = load i32, ptr %74, align 4, !tbaa !9
  %453 = zext i32 %452 to i64
  %454 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorIN3glm3vecILi3EfLNS0_9qualifierE0EEESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %450, i64 noundef %453) #10
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %75, ptr align 4 %454, i64 12, i1 false), !tbaa.struct !11
  invoke void @_ZNSt6vectorIN3glm3vecILi3EfLNS0_9qualifierE0EEESaIS3_EE9push_backERKS3_(ptr noundef nonnull align 8 dereferenceable(24) %71, ptr noundef nonnull align 4 dereferenceable(12) %75)
          to label %455 unwind label %461

455:                                              ; preds = %451
  %456 = invoke noundef nonnull align 4 dereferenceable(12) ptr @_ZN3glm3vecILi3EfLNS_9qualifierE0EEpLIfEERS2_RKNS0_ILi3ET_LS1_0EEE(ptr noundef nonnull align 4 dereferenceable(12) %72, ptr noundef nonnull align 4 dereferenceable(12) %75)
          to label %457 unwind label %461

457:                                              ; preds = %455
  call void @llvm.lifetime.end.p0(i64 12, ptr %75) #10
  br label %458

458:                                              ; preds = %457
  %459 = load i32, ptr %74, align 4, !tbaa !9
  %460 = add i32 %459, 1
  store i32 %460, ptr %74, align 4, !tbaa !9
  br label %436, !llvm.loop !22

461:                                              ; preds = %455, %451, %449
  %462 = landingpad { ptr, i32 }
          cleanup
  %463 = extractvalue { ptr, i32 } %462, 0
  store ptr %463, ptr %23, align 8
  %464 = extractvalue { ptr, i32 } %462, 1
  store i32 %464, ptr %24, align 4
  call void @llvm.lifetime.end.p0(i64 12, ptr %75) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %74) #10
  br label %606

465:                                              ; preds = %440
  %466 = load i32, ptr %73, align 4, !tbaa !9
  %467 = invoke noundef nonnull align 4 dereferenceable(12) ptr @_ZN3glm3vecILi3EfLNS_9qualifierE0EEdVIjEERS2_T_(ptr noundef nonnull align 4 dereferenceable(12) %72, i32 noundef %466)
          to label %468 unwind label %445

468:                                              ; preds = %465
  invoke void @_ZNSt6vectorIN3glm3vecILi3EfLNS0_9qualifierE0EEESaIS3_EE9push_backERKS3_(ptr noundef nonnull align 8 dereferenceable(24) %71, ptr noundef nonnull align 4 dereferenceable(12) %72)
          to label %469 unwind label %445

469:                                              ; preds = %468
  call void @llvm.lifetime.start.p0(i64 24, ptr %76) #10
  invoke void @_ZNSt6vectorIN3glm3vecILi3EfLNS0_9qualifierE0EEESaIS3_EEC2ERKS5_(ptr noundef nonnull align 8 dereferenceable(24) %77, ptr noundef nonnull align 8 dereferenceable(24) %71)
          to label %470 unwind label %512

470:                                              ; preds = %469
  invoke void @_Z21projectPolygonToPlaneSt6vectorIN3glm3vecILi3EfLNS0_9qualifierE0EEESaIS3_EE(ptr dead_on_unwind writable sret(%"class.std::vector.99") align 8 %76, ptr noundef %77)
          to label %471 unwind label %516

471:                                              ; preds = %470
  call void @_ZNSt6vectorIN3glm3vecILi3EfLNS0_9qualifierE0EEESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %77) #10
  call void @llvm.lifetime.start.p0(i64 8, ptr %78) #10
  %472 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorIN3glm3vecILi2EfLNS0_9qualifierE0EEESaIS3_EE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %76) #10
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %78, ptr align 4 %472, i64 8, i1 false), !tbaa.struct !23
  call void @_ZNSt6vectorIN3glm3vecILi2EfLNS0_9qualifierE0EEESaIS3_EE8pop_backEv(ptr noundef nonnull align 8 dereferenceable(24) %76) #10
  call void @llvm.lifetime.start.p0(i64 24, ptr %79) #10
  invoke void @_ZNSt6vectorIN3glm3vecILi2EfLNS0_9qualifierE0EEESaIS3_EEC2ERKS5_(ptr noundef nonnull align 8 dereferenceable(24) %80, ptr noundef nonnull align 8 dereferenceable(24) %76)
          to label %473 unwind label %520

473:                                              ; preds = %471
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %81, ptr align 4 %78, i64 8, i1 false), !tbaa.struct !23
  %474 = load i32, ptr %73, align 4, !tbaa !9
  %475 = load <2 x float>, ptr %81, align 4
  invoke void @_Z20OrderPolygonVerticesSt6vectorIN3glm3vecILi2EfLNS0_9qualifierE0EEESaIS3_EES3_j(ptr dead_on_unwind writable sret(%"class.std::vector.80") align 8 %79, ptr noundef %80, <2 x float> %475, i32 noundef %474)
          to label %476 unwind label %524

476:                                              ; preds = %473
  call void @_ZNSt6vectorIN3glm3vecILi2EfLNS0_9qualifierE0EEESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %80) #10
  call void @llvm.lifetime.start.p0(i64 12, ptr %82) #10
  %477 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %79, i64 noundef 0) #10
  %478 = load i32, ptr %477, align 4, !tbaa !9
  %479 = zext i32 %478 to i64
  %480 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorIN3glm3vecILi3EfLNS0_9qualifierE0EEESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %71, i64 noundef %479) #10
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %83, ptr align 4 %480, i64 12, i1 false), !tbaa.struct !11
  %481 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %79, i64 noundef 1) #10
  %482 = load i32, ptr %481, align 4, !tbaa !9
  %483 = zext i32 %482 to i64
  %484 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorIN3glm3vecILi3EfLNS0_9qualifierE0EEESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %71, i64 noundef %483) #10
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %84, ptr align 4 %484, i64 12, i1 false), !tbaa.struct !11
  %485 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %79, i64 noundef 2) #10
  %486 = load i32, ptr %485, align 4, !tbaa !9
  %487 = zext i32 %486 to i64
  %488 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorIN3glm3vecILi3EfLNS0_9qualifierE0EEESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %71, i64 noundef %487) #10
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %85, ptr align 4 %488, i64 12, i1 false), !tbaa.struct !11
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %86, ptr align 4 %83, i64 12, i1 false)
  %489 = getelementptr inbounds { <2 x float>, float }, ptr %86, i32 0, i32 0
  %490 = load <2 x float>, ptr %489, align 4
  %491 = getelementptr inbounds { <2 x float>, float }, ptr %86, i32 0, i32 1
  %492 = load float, ptr %491, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %87, ptr align 4 %84, i64 12, i1 false)
  %493 = getelementptr inbounds { <2 x float>, float }, ptr %87, i32 0, i32 0
  %494 = load <2 x float>, ptr %493, align 4
  %495 = getelementptr inbounds { <2 x float>, float }, ptr %87, i32 0, i32 1
  %496 = load float, ptr %495, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %88, ptr align 4 %85, i64 12, i1 false)
  %497 = getelementptr inbounds { <2 x float>, float }, ptr %88, i32 0, i32 0
  %498 = load <2 x float>, ptr %497, align 4
  %499 = getelementptr inbounds { <2 x float>, float }, ptr %88, i32 0, i32 1
  %500 = load float, ptr %499, align 4
  %501 = invoke { <2 x float>, float } @_ZN7Surface17ComputeFaceNormalEN3glm3vecILi3EfLNS0_9qualifierE0EEES3_S3_(ptr noundef nonnull align 8 dereferenceable(152) %100, <2 x float> %490, float %492, <2 x float> %494, float %496, <2 x float> %498, float %500)
          to label %502 unwind label %528

502:                                              ; preds = %476
  store { <2 x float>, float } %501, ptr %89, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %82, ptr align 8 %89, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 24, ptr %90) #10
  call void @_ZNSt6vectorIjSaIjEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %90) #10
  %503 = invoke noundef float @_ZN3glm3dotILi3EfLNS_9qualifierE0EEET0_RKNS_3vecIXT_ES2_XT1_EEES6_(ptr noundef nonnull align 4 dereferenceable(12) %82, ptr noundef nonnull align 4 dereferenceable(12) %63)
          to label %504 unwind label %532

504:                                              ; preds = %502
  %505 = fcmp ogt float %503, 0.000000e+00
  br i1 %505, label %506, label %559

506:                                              ; preds = %504
  call void @llvm.lifetime.start.p0(i64 4, ptr %91) #10
  store i32 0, ptr %91, align 4, !tbaa !9
  br label %507

507:                                              ; preds = %550, %506
  %508 = load i32, ptr %91, align 4, !tbaa !9
  %509 = load i32, ptr %73, align 4, !tbaa !9
  %510 = icmp ult i32 %508, %509
  br i1 %510, label %536, label %511

511:                                              ; preds = %507
  store i32 22, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %91) #10
  br label %557

512:                                              ; preds = %469
  %513 = landingpad { ptr, i32 }
          cleanup
  %514 = extractvalue { ptr, i32 } %513, 0
  store ptr %514, ptr %23, align 8
  %515 = extractvalue { ptr, i32 } %513, 1
  store i32 %515, ptr %24, align 4
  br label %605

516:                                              ; preds = %470
  %517 = landingpad { ptr, i32 }
          cleanup
  %518 = extractvalue { ptr, i32 } %517, 0
  store ptr %518, ptr %23, align 8
  %519 = extractvalue { ptr, i32 } %517, 1
  store i32 %519, ptr %24, align 4
  call void @_ZNSt6vectorIN3glm3vecILi3EfLNS0_9qualifierE0EEESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %77) #10
  br label %605

520:                                              ; preds = %471
  %521 = landingpad { ptr, i32 }
          cleanup
  %522 = extractvalue { ptr, i32 } %521, 0
  store ptr %522, ptr %23, align 8
  %523 = extractvalue { ptr, i32 } %521, 1
  store i32 %523, ptr %24, align 4
  br label %604

524:                                              ; preds = %473
  %525 = landingpad { ptr, i32 }
          cleanup
  %526 = extractvalue { ptr, i32 } %525, 0
  store ptr %526, ptr %23, align 8
  %527 = extractvalue { ptr, i32 } %525, 1
  store i32 %527, ptr %24, align 4
  call void @_ZNSt6vectorIN3glm3vecILi2EfLNS0_9qualifierE0EEESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %80) #10
  br label %604

528:                                              ; preds = %476
  %529 = landingpad { ptr, i32 }
          cleanup
  %530 = extractvalue { ptr, i32 } %529, 0
  store ptr %530, ptr %23, align 8
  %531 = extractvalue { ptr, i32 } %529, 1
  store i32 %531, ptr %24, align 4
  br label %603

532:                                              ; preds = %591, %589, %557, %502
  %533 = landingpad { ptr, i32 }
          cleanup
  %534 = extractvalue { ptr, i32 } %533, 0
  store ptr %534, ptr %23, align 8
  %535 = extractvalue { ptr, i32 } %533, 1
  store i32 %535, ptr %24, align 4
  br label %602

536:                                              ; preds = %507
  call void @llvm.lifetime.start.p0(i64 4, ptr %92) #10
  %537 = load i32, ptr %91, align 4, !tbaa !9
  %538 = zext i32 %537 to i64
  %539 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %79, i64 noundef %538) #10
  %540 = load i32, ptr %539, align 4, !tbaa !9
  %541 = zext i32 %540 to i64
  %542 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorIN3glm3vecILi3EfLNS0_9qualifierE0EEESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %71, i64 noundef %541) #10
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %93, ptr align 4 %542, i64 12, i1 false), !tbaa.struct !11
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %94, ptr align 4 %93, i64 12, i1 false)
  %543 = getelementptr inbounds { <2 x float>, float }, ptr %94, i32 0, i32 0
  %544 = load <2 x float>, ptr %543, align 4
  %545 = getelementptr inbounds { <2 x float>, float }, ptr %94, i32 0, i32 1
  %546 = load float, ptr %545, align 4
  %547 = invoke noundef i32 @_ZN7Surface12getVertIndexEN3glm3vecILi3EfLNS0_9qualifierE0EEERSt6vectorIS3_SaIS3_EERSt13unordered_mapIfS8_IfS8_IfjSt4hashIfESt8equal_toIfESaISt4pairIKfjEEESA_SC_SaISD_ISE_SH_EEESA_SC_SaISD_ISE_SK_EEE(ptr noundef nonnull align 8 dereferenceable(152) %100, <2 x float> %544, float %546, ptr noundef nonnull align 8 dereferenceable(24) %11, ptr noundef nonnull align 8 dereferenceable(56) %12)
          to label %548 unwind label %553

548:                                              ; preds = %536
  store i32 %547, ptr %92, align 4, !tbaa !9
  invoke void @_ZNSt6vectorIjSaIjEE9push_backERKj(ptr noundef nonnull align 8 dereferenceable(24) %90, ptr noundef nonnull align 4 dereferenceable(4) %92)
          to label %549 unwind label %553

549:                                              ; preds = %548
  call void @llvm.lifetime.end.p0(i64 4, ptr %92) #10
  br label %550

550:                                              ; preds = %549
  %551 = load i32, ptr %91, align 4, !tbaa !9
  %552 = add i32 %551, 1
  store i32 %552, ptr %91, align 4, !tbaa !9
  br label %507, !llvm.loop !24

553:                                              ; preds = %548, %536
  %554 = landingpad { ptr, i32 }
          cleanup
  %555 = extractvalue { ptr, i32 } %554, 0
  store ptr %555, ptr %23, align 8
  %556 = extractvalue { ptr, i32 } %554, 1
  store i32 %556, ptr %24, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %92) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %91) #10
  br label %602

557:                                              ; preds = %511
  invoke void @_ZNSt6vectorIS_IjSaIjEESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %13, ptr noundef nonnull align 8 dereferenceable(24) %90)
          to label %558 unwind label %532

558:                                              ; preds = %557
  br label %591

559:                                              ; preds = %504
  call void @llvm.lifetime.start.p0(i64 4, ptr %95) #10
  store i32 0, ptr %95, align 4, !tbaa !9
  br label %560

560:                                              ; preds = %582, %559
  %561 = load i32, ptr %95, align 4, !tbaa !9
  %562 = load i32, ptr %73, align 4, !tbaa !9
  %563 = icmp ult i32 %561, %562
  br i1 %563, label %565, label %564

564:                                              ; preds = %560
  store i32 25, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %95) #10
  br label %589

565:                                              ; preds = %560
  call void @llvm.lifetime.start.p0(i64 4, ptr %96) #10
  %566 = load i32, ptr %73, align 4, !tbaa !9
  %567 = sub i32 %566, 1
  %568 = load i32, ptr %95, align 4, !tbaa !9
  %569 = sub i32 %567, %568
  %570 = zext i32 %569 to i64
  %571 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %79, i64 noundef %570) #10
  %572 = load i32, ptr %571, align 4, !tbaa !9
  %573 = zext i32 %572 to i64
  %574 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorIN3glm3vecILi3EfLNS0_9qualifierE0EEESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %71, i64 noundef %573) #10
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %97, ptr align 4 %574, i64 12, i1 false), !tbaa.struct !11
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %98, ptr align 4 %97, i64 12, i1 false)
  %575 = getelementptr inbounds { <2 x float>, float }, ptr %98, i32 0, i32 0
  %576 = load <2 x float>, ptr %575, align 4
  %577 = getelementptr inbounds { <2 x float>, float }, ptr %98, i32 0, i32 1
  %578 = load float, ptr %577, align 4
  %579 = invoke noundef i32 @_ZN7Surface12getVertIndexEN3glm3vecILi3EfLNS0_9qualifierE0EEERSt6vectorIS3_SaIS3_EERSt13unordered_mapIfS8_IfS8_IfjSt4hashIfESt8equal_toIfESaISt4pairIKfjEEESA_SC_SaISD_ISE_SH_EEESA_SC_SaISD_ISE_SK_EEE(ptr noundef nonnull align 8 dereferenceable(152) %100, <2 x float> %576, float %578, ptr noundef nonnull align 8 dereferenceable(24) %11, ptr noundef nonnull align 8 dereferenceable(56) %12)
          to label %580 unwind label %585

580:                                              ; preds = %565
  store i32 %579, ptr %96, align 4, !tbaa !9
  invoke void @_ZNSt6vectorIjSaIjEE9push_backERKj(ptr noundef nonnull align 8 dereferenceable(24) %90, ptr noundef nonnull align 4 dereferenceable(4) %96)
          to label %581 unwind label %585

581:                                              ; preds = %580
  call void @llvm.lifetime.end.p0(i64 4, ptr %96) #10
  br label %582

582:                                              ; preds = %581
  %583 = load i32, ptr %95, align 4, !tbaa !9
  %584 = add i32 %583, 1
  store i32 %584, ptr %95, align 4, !tbaa !9
  br label %560, !llvm.loop !25

585:                                              ; preds = %580, %565
  %586 = landingpad { ptr, i32 }
          cleanup
  %587 = extractvalue { ptr, i32 } %586, 0
  store ptr %587, ptr %23, align 8
  %588 = extractvalue { ptr, i32 } %586, 1
  store i32 %588, ptr %24, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %96) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %95) #10
  br label %602

589:                                              ; preds = %564
  invoke void @_ZNSt6vectorIS_IjSaIjEESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %13, ptr noundef nonnull align 8 dereferenceable(24) %90)
          to label %590 unwind label %532

590:                                              ; preds = %589
  br label %591

591:                                              ; preds = %590, %558
  %592 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt13unordered_mapIjjSt4hashIjESt8equal_toIjESaISt4pairIKjjEEEixERS5_(ptr noundef nonnull align 8 dereferenceable(56) %14, ptr noundef nonnull align 4 dereferenceable(4) %73)
          to label %593 unwind label %532

593:                                              ; preds = %591
  %594 = load i32, ptr %592, align 4, !tbaa !9
  %595 = add i32 %594, 1
  store i32 %595, ptr %592, align 4, !tbaa !9
  call void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %90) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr %90) #10
  call void @llvm.lifetime.end.p0(i64 12, ptr %82) #10
  call void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %79) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr %79) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %78) #10
  call void @_ZNSt6vectorIN3glm3vecILi2EfLNS0_9qualifierE0EEESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %76) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr %76) #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 @_ZNSt6vectorIN3glm3vecILi3EfLNS0_9qualifierE0EEESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %71) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr %71) #10
  call void @llvm.lifetime.end.p0(i64 12, ptr %63) #10
  store i32 0, ptr %16, align 4
  br label %596

596:                                              ; preds = %593, %387
  call void @_ZN12VertexRecordD2Ev(ptr noundef nonnull align 8 dereferenceable(64) %62) #10
  call void @llvm.lifetime.end.p0(i64 64, ptr %62) #10
  %597 = load i32, ptr %16, align 4
  switch i32 %597, label %642 [
    i32 0, label %598
    i32 16, label %599
  ]

598:                                              ; preds = %596
  br label %599

599:                                              ; preds = %598, %596
  %600 = load i32, ptr %61, align 4, !tbaa !9
  %601 = add i32 %600, 1
  store i32 %601, ptr %61, align 4, !tbaa !9
  br label %371, !llvm.loop !26

602:                                              ; preds = %585, %553, %532
  call void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %90) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr %90) #10
  br label %603

603:                                              ; preds = %602, %528
  call void @llvm.lifetime.end.p0(i64 12, ptr %82) #10
  call void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %79) #10
  br label %604

604:                                              ; preds = %603, %524, %520
  call void @llvm.lifetime.end.p0(i64 24, ptr %79) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %78) #10
  call void @_ZNSt6vectorIN3glm3vecILi2EfLNS0_9qualifierE0EEESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %76) #10
  br label %605

605:                                              ; preds = %604, %516, %512
  call void @llvm.lifetime.end.p0(i64 24, ptr %76) #10
  br label %606

606:                                              ; preds = %605, %461, %445
  call void @llvm.lifetime.end.p0(i64 4, ptr %73) #10
  call void @llvm.lifetime.end.p0(i64 12, ptr %72) #10
  call void @_ZNSt6vectorIN3glm3vecILi3EfLNS0_9qualifierE0EEESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %71) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr %71) #10
  br label %607

607:                                              ; preds = %606, %441, %425
  call void @llvm.lifetime.end.p0(i64 12, ptr %63) #10
  call void @_ZN12VertexRecordD2Ev(ptr noundef nonnull align 8 dereferenceable(64) %62) #10
  br label %608

608:                                              ; preds = %607, %388
  call void @llvm.lifetime.end.p0(i64 64, ptr %62) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %61) #10
  br label %636

609:                                              ; preds = %377
  store i1 false, ptr %99, align 1
  invoke void @_ZN6ObjectC1Ev(ptr noundef nonnull align 8 dereferenceable(152) %0)
          to label %610 unwind label %626

610:                                              ; preds = %609
  %611 = getelementptr inbounds %class.Surface, ptr %100, i32 0, i32 3
  %612 = getelementptr inbounds %class.Object, ptr %0, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %612, ptr align 8 %611, i64 12, i1 false), !tbaa.struct !11
  %613 = getelementptr inbounds %class.Surface, ptr %100, i32 0, i32 4
  %614 = getelementptr inbounds %class.Object, ptr %0, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %614, ptr align 4 %613, i64 12, i1 false), !tbaa.struct !11
  %615 = getelementptr inbounds %class.Object, ptr %0, i32 0, i32 2
  %616 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIN3glm3vecILi3EfLNS0_9qualifierE0EEESaIS3_EEaSERKS5_(ptr noundef nonnull align 8 dereferenceable(24) %615, ptr noundef nonnull align 8 dereferenceable(24) %11)
          to label %617 unwind label %630

617:                                              ; preds = %610
  %618 = getelementptr inbounds %class.Object, ptr %0, i32 0, i32 3
  %619 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IjSaIjEESaIS1_EEaSERKS3_(ptr noundef nonnull align 8 dereferenceable(24) %618, ptr noundef nonnull align 8 dereferenceable(24) %13)
          to label %620 unwind label %630

620:                                              ; preds = %617
  %621 = getelementptr inbounds %class.Object, ptr %0, i32 0, i32 5
  %622 = invoke noundef nonnull align 8 dereferenceable(56) ptr @_ZNSt13unordered_mapIjjSt4hashIjESt8equal_toIjESaISt4pairIKjjEEEaSERKS8_(ptr noundef nonnull align 8 dereferenceable(56) %621, ptr noundef nonnull align 8 dereferenceable(56) %14)
          to label %623 unwind label %630

623:                                              ; preds = %620
  invoke void @_ZN6Object16TriangulateFacesEv(ptr noundef nonnull align 8 dereferenceable(152) %0)
          to label %624 unwind label %630

624:                                              ; preds = %623
  store i1 true, ptr %99, align 1
  store i32 1, ptr %16, align 4
  %625 = load i1, ptr %99, align 1
  br i1 %625, label %635, label %634

626:                                              ; preds = %609
  %627 = landingpad { ptr, i32 }
          cleanup
  %628 = extractvalue { ptr, i32 } %627, 0
  store ptr %628, ptr %23, align 8
  %629 = extractvalue { ptr, i32 } %627, 1
  store i32 %629, ptr %24, align 4
  br label %636

630:                                              ; preds = %623, %620, %617, %610
  %631 = landingpad { ptr, i32 }
          cleanup
  %632 = extractvalue { ptr, i32 } %631, 0
  store ptr %632, ptr %23, align 8
  %633 = extractvalue { ptr, i32 } %631, 1
  store i32 %633, ptr %24, align 4
  call void @_ZN6ObjectD1Ev(ptr noundef nonnull align 8 dereferenceable(152) %0) #10
  br label %636

634:                                              ; preds = %624
  call void @_ZN6ObjectD1Ev(ptr noundef nonnull align 8 dereferenceable(152) %0) #10
  br label %635

635:                                              ; preds = %634, %624
  call void @_ZNSt13unordered_mapIjjSt4hashIjESt8equal_toIjESaISt4pairIKjjEEED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %14) #10
  call void @llvm.lifetime.end.p0(i64 56, ptr %14) #10
  call void @_ZNSt6vectorIS_IjSaIjEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr %13) #10
  call void @_ZNSt13unordered_mapIfS_IfS_IfjSt4hashIfESt8equal_toIfESaISt4pairIKfjEEES1_S3_SaIS4_IS5_S8_EEES1_S3_SaIS4_IS5_SB_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %12) #10
  call void @llvm.lifetime.end.p0(i64 56, ptr %12) #10
  call void @_ZNSt6vectorIN3glm3vecILi3EfLNS0_9qualifierE0EEESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr %11) #10
  ret void

636:                                              ; preds = %630, %626, %608, %369, %153
  call void @_ZNSt13unordered_mapIjjSt4hashIjESt8equal_toIjESaISt4pairIKjjEEED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %14) #10
  call void @llvm.lifetime.end.p0(i64 56, ptr %14) #10
  call void @_ZNSt6vectorIS_IjSaIjEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr %13) #10
  call void @_ZNSt13unordered_mapIfS_IfS_IfjSt4hashIfESt8equal_toIfESaISt4pairIKfjEEES1_S3_SaIS4_IS5_S8_EEES1_S3_SaIS4_IS5_SB_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %12) #10
  call void @llvm.lifetime.end.p0(i64 56, ptr %12) #10
  call void @_ZNSt6vectorIN3glm3vecILi3EfLNS0_9qualifierE0EEESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr %11) #10
  br label %637

637:                                              ; preds = %636
  %638 = load ptr, ptr %23, align 8
  %639 = load i32, ptr %24, align 4
  %640 = insertvalue { ptr, i32 } poison, ptr %638, 0
  %641 = insertvalue { ptr, i32 } %640, i32 %639, 1
  resume { ptr, i32 } %641

642:                                              ; preds = %596
  unreachable
}

; 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 @_ZNSt6vectorIN3glm3vecILi3EfLNS0_9qualifierE0EEESaIS3_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #2 align 2

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

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

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

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

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

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

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

declare noundef i32 @_ZN7Surface12getVertIndexEN3glm3vecILi3EfLNS0_9qualifierE0EEERSt6vectorIS3_SaIS3_EERSt13unordered_mapIfS8_IfS8_IfjSt4hashIfESt8equal_toIfESaISt4pairIKfjEEESA_SC_SaISD_ISE_SH_EEESA_SC_SaISD_ISE_SK_EEE(ptr noundef nonnull align 8 dereferenceable(152), <2 x float>, float, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(56)) #3

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

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

; 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 #6 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: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #7

declare { <2 x float>, float } @_ZN7Surface17ComputeFaceNormalE10FaceRecord(ptr noundef nonnull align 8 dereferenceable(152), ptr noundef) #3

; 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: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN10FaceRecordC2ERKS_(ptr noundef nonnull align 8 dereferenceable(120), ptr noundef nonnull align 8 dereferenceable(120)) unnamed_addr #6 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)) #8 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN10FaceRecordD2Ev(ptr noundef nonnull align 8 dereferenceable(120)) unnamed_addr #8 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) #8 align 2

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

declare { <2 x float>, float } @_ZN7Surface17ComputeFaceNormalEN3glm3vecILi3EfLNS0_9qualifierE0EEES3_S3_(ptr noundef nonnull align 8 dereferenceable(152), <2 x float>, float, <2 x float>, float, <2 x float>, float) #3

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

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

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN10EdgeRecordD2Ev(ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #8 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: 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: inlinehint mustprogress uwtable
declare dso_local void @_ZN12VertexRecordC2ERKS_(ptr noundef nonnull align 8 dereferenceable(64), ptr noundef nonnull align 8 dereferenceable(64)) unnamed_addr #6 align 2

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

; 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: 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: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIN3glm3vecILi3EfLNS0_9qualifierE0EEESaIS3_EE9push_backERKS3_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(12)) #5 align 2

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

declare void @_Z21projectPolygonToPlaneSt6vectorIN3glm3vecILi3EfLNS0_9qualifierE0EEESaIS3_EE(ptr dead_on_unwind writable sret(%"class.std::vector.99") align 8, ptr noundef) #3

; 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 #5 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 nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorIN3glm3vecILi2EfLNS0_9qualifierE0EEESaIS3_EE4backEv(ptr noundef nonnull align 8 dereferenceable(24)) #2 align 2

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

declare void @_Z20OrderPolygonVerticesSt6vectorIN3glm3vecILi2EfLNS0_9qualifierE0EEESaIS3_EES3_j(ptr dead_on_unwind writable sret(%"class.std::vector.80") align 8, ptr noundef, <2 x float>, i32 noundef) #3

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

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

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

declare void @_ZN6ObjectC1Ev(ptr noundef nonnull align 8 dereferenceable(152)) unnamed_addr #3

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(56) ptr @_ZNSt13unordered_mapIjjSt4hashIjESt8equal_toIjESaISt4pairIKjjEEEaSERKS8_(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 8 dereferenceable(56)) #5 align 2

declare void @_ZN6Object16TriangulateFacesEv(ptr noundef nonnull align 8 dereferenceable(152)) #3

; Function Attrs: nounwind
declare void @_ZN6ObjectD1Ev(ptr noundef nonnull align 8 dereferenceable(152)) unnamed_addr #9

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZNSt13unordered_mapIfS_IfS_IfjSt4hashIfESt8equal_toIfESaISt4pairIKfjEEES1_S3_SaIS4_IS5_S8_EEES1_S3_SaIS4_IS5_SB_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(56)) unnamed_addr #8 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 = { "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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { 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 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 = { 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 #9 = { nounwind "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 }

!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 = distinct !{!15, !14}
!16 = distinct !{!16, !14}
!17 = !{!18, !6, i64 0}
!18 = !{!"_ZTSSt16initializer_listIjE", !6, i64 0, !19, i64 8}
!19 = !{!"long", !7, i64 0}
!20 = !{!18, !19, i64 8}
!21 = distinct !{!21, !14}
!22 = distinct !{!22, !14}
!23 = !{i64 0, i64 4, !12, i64 4, i64 4, !12}
!24 = distinct !{!24, !14}
!25 = distinct !{!25, !14}
!26 = distinct !{!26, !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.Object = type { %"struct.glm::vec", %"struct.glm::vec", %"class.std::vector", %"class.std::vector.2", %"class.std::vector.2", %"class.std::unordered_map" }
%"struct.glm::vec" = type { %union.anon, %union.anon.0, %union.anon.1 }
%union.anon = type { float }
%union.anon.0 = type { float }
%union.anon.1 = type { float }
%"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.std::vector.2" = type { %"struct.std::_Vector_base.3" }
%"struct.std::_Vector_base.3" = 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" = 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.std::__detail::_Hash_node_base" = type { ptr }
%"struct.std::__detail::_Prime_rehash_policy" = type { float, i64 }
%"class.std::unordered_map.31" = type { %"class.std::_Hashtable.32" }
%"class.std::_Hashtable.32" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"class.std::vector.80" = type { %"struct.std::_Vector_base.81" }
%"struct.std::_Vector_base.81" = 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 }
%struct.EdgeRecord = type { i32, i32, %"struct.glm::vec", %"class.std::vector.80" }
%struct.FaceRecord = type { %"struct.glm::vec", %"class.std::vector.80", %"class.std::unordered_map.85", %"class.std::vector.80" }
%"class.std::unordered_map.85" = type { %"class.std::_Hashtable.86" }
%"class.std::_Hashtable.86" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"class.std::allocator.82" = type { i8 }
%struct.VertexRecord = type { %"struct.glm::vec", %"class.std::vector.80", %"class.std::vector.80" }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"class.std::vector.99" = type { %"struct.std::_Vector_base.100" }
%"struct.std::_Vector_base.100" = type { %"struct.std::_Vector_base<glm::vec<2, float>, std::allocator<glm::vec<2, float>>>::_Vector_impl" }
%"struct.std::_Vector_base<glm::vec<2, float>, std::allocator<glm::vec<2, float>>>::_Vector_impl" = type { %"struct.std::_Vector_base<glm::vec<2, float>, std::allocator<glm::vec<2, float>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<glm::vec<2, float>, std::allocator<glm::vec<2, float>>>::_Vector_impl_data" = type { ptr, ptr, ptr }

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7Surface11DSOutputOBJESt6vectorIS0_IN3glm3vecILi3EfLNS1_9qualifierE0EEESaIS4_EESaIS6_EESt13unordered_mapIjS6_St4hashIjESt8equal_toIjESaISt4pairIKjS6_EEESI_(ptr dead_on_unwind noalias writable sret(%class.Object) align 8 %0, ptr noundef nonnull align 8 dereferenceable(152) %1, ptr noundef %2, ptr noundef %3, ptr noundef %4) local_unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %6 = alloca %"class.std::vector", align 8
  %7 = alloca %"class.std::unordered_map.31", align 8
  %8 = alloca %"class.std::vector.2", align 8
  %9 = alloca %"class.std::unordered_map", align 8
  %10 = alloca i32, align 4
  %11 = alloca %"class.std::vector.80", align 8
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca %struct.EdgeRecord, align 8
  %15 = alloca %"struct.glm::vec", align 4
  %16 = alloca %"struct.glm::vec", align 8
  %17 = alloca %struct.FaceRecord, align 8
  %18 = alloca %"struct.glm::vec", align 8
  %19 = alloca %"class.std::vector.80", align 8
  %20 = alloca [4 x i32], align 4
  %21 = alloca %"class.std::allocator.82", align 1
  %22 = alloca %"class.std::vector.80", align 8
  %23 = alloca [4 x i32], align 4
  %24 = alloca %"class.std::allocator.82", align 1
  %25 = alloca i32, align 4
  %26 = alloca i32, align 4
  %27 = alloca %struct.VertexRecord, align 8
  %28 = alloca %"struct.glm::vec", align 4
  %29 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %30 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %31 = alloca %"struct.glm::vec", align 8
  %32 = alloca %struct.FaceRecord, align 8
  %33 = alloca %"class.std::vector", align 8
  %34 = alloca %"struct.glm::vec", align 4
  %35 = alloca i32, align 4
  %36 = alloca %"struct.glm::vec", align 4
  %37 = alloca %"class.std::vector.99", align 8
  %38 = alloca %"class.std::vector", align 8
  %39 = alloca %"class.std::vector.80", align 8
  %40 = alloca %"class.std::vector.99", align 8
  %41 = alloca %"struct.glm::vec", align 8
  %42 = alloca %"class.std::vector.80", align 8
  %43 = alloca i32, align 4
  %44 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %6) #10
  call void @_ZNSt6vectorIN3glm3vecILi3EfLNS0_9qualifierE0EEESaIS3_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #10
  call void @llvm.lifetime.start.p0(i64 56, ptr nonnull %7) #10
  call void @_ZNSt13unordered_mapIfS_IfS_IfjSt4hashIfESt8equal_toIfESaISt4pairIKfjEEES1_S3_SaIS4_IS5_S8_EEES1_S3_SaIS4_IS5_SB_EEEC2Ev(ptr noundef nonnull align 8 dereferenceable(56) %7) #10
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %8) #10
  call void @_ZNSt6vectorIS_IjSaIjEESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #10
  call void @llvm.lifetime.start.p0(i64 56, ptr nonnull %9) #10
  call void @_ZNSt13unordered_mapIjjSt4hashIjESt8equal_toIjESaISt4pairIKjjEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(56) %9) #10
  %45 = getelementptr inbounds i8, ptr %1, i64 48
  %46 = call noundef i64 @_ZNKSt6vectorI10FaceRecordSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %45) #10
  %.not = icmp eq i64 %46, 0
  br i1 %.not, label %._crit_edge168, label %.lr.ph167

._crit_edge168:                                   ; preds = %73, %5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %13) #10
  store i32 0, ptr %13, align 4, !tbaa !5
  %47 = call noundef i64 @_ZNKSt13unordered_mapIjSt6vectorIN3glm3vecILi3EfLNS1_9qualifierE0EEESaIS4_EESt4hashIjESt8equal_toIjESaISt4pairIKjS6_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(56) %4) #10
  %.not191 = icmp eq i64 %47, 0
  br i1 %.not191, label %._crit_edge172, label %.lr.ph171

.lr.ph171:                                        ; preds = %._crit_edge168
  %48 = getelementptr inbounds i8, ptr %1, i64 24
  %49 = getelementptr inbounds i8, ptr %14, i64 24
  %.sroa.285.0..sroa_idx = getelementptr inbounds i8, ptr %16, i64 8
  %.sroa.245.0..sroa_idx = getelementptr inbounds i8, ptr %18, i64 8
  %50 = getelementptr inbounds i8, ptr %23, i64 4
  %51 = getelementptr inbounds i8, ptr %23, i64 8
  %52 = getelementptr inbounds i8, ptr %23, i64 12
  %53 = getelementptr inbounds i8, ptr %20, i64 4
  %54 = getelementptr inbounds i8, ptr %20, i64 8
  %55 = getelementptr inbounds i8, ptr %20, i64 12
  br label %85

.lr.ph167:                                        ; preds = %5, %73
  %56 = phi i64 [ %77, %73 ], [ 0, %5 ]
  %.0165 = phi i32 [ %76, %73 ], [ 0, %5 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #10
  %57 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IN3glm3vecILi3EfLNS0_9qualifierE0EEESaIS3_EESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %56) #10
  %58 = call noundef i64 @_ZNKSt6vectorIN3glm3vecILi3EfLNS0_9qualifierE0EEESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %57) #10
  %59 = trunc i64 %58 to i32
  store i32 %59, ptr %10, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %11) #10
  call void @_ZNSt6vectorIjSaIjEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #10
  %60 = load i32, ptr %10, align 4, !tbaa !5
  %.not190 = icmp eq i32 %60, 0
  br i1 %.not190, label %._crit_edge, label %.lr.ph

._crit_edge:                                      ; preds = %65, %.lr.ph167
  invoke void @_ZNSt6vectorIS_IjSaIjEESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %8, ptr noundef nonnull align 8 dereferenceable(24) %11)
          to label %71 unwind label %80

.lr.ph:                                           ; preds = %.lr.ph167, %65
  %indvars.iv = phi i64 [ %indvars.iv.next, %65 ], [ 0, %.lr.ph167 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %12) #10
  %61 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IN3glm3vecILi3EfLNS0_9qualifierE0EEESaIS3_EESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %56) #10
  %62 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorIN3glm3vecILi3EfLNS0_9qualifierE0EEESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %61, i64 noundef %indvars.iv) #10
  %.sroa.093.0.copyload = load <2 x float>, ptr %62, align 4
  %.sroa.294.0..sroa_idx = getelementptr inbounds i8, ptr %62, i64 8
  %.sroa.294.0.copyload = load float, ptr %.sroa.294.0..sroa_idx, align 4, !tbaa !9
  %63 = invoke noundef i32 @_ZN7Surface12getVertIndexEN3glm3vecILi3EfLNS0_9qualifierE0EEERSt6vectorIS3_SaIS3_EERSt13unordered_mapIfS8_IfS8_IfjSt4hashIfESt8equal_toIfESaISt4pairIKfjEEESA_SC_SaISD_ISE_SH_EEESA_SC_SaISD_ISE_SK_EEE(ptr noundef nonnull align 8 dereferenceable(152) %1, <2 x float> %.sroa.093.0.copyload, float %.sroa.294.0.copyload, ptr noundef nonnull align 8 dereferenceable(24) %6, ptr noundef nonnull align 8 dereferenceable(56) %7)
          to label %64 unwind label %69

64:                                               ; preds = %.lr.ph
  store i32 %63, ptr %12, align 4, !tbaa !5
  invoke void @_ZNSt6vectorIjSaIjEE9push_backERKj(ptr noundef nonnull align 8 dereferenceable(24) %11, ptr noundef nonnull align 4 dereferenceable(4) %12)
          to label %65 unwind label %69

65:                                               ; preds = %64
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #10
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %66 = load i32, ptr %10, align 4, !tbaa !5
  %67 = zext i32 %66 to i64
  %68 = icmp ult i64 %indvars.iv.next, %67
  br i1 %68, label %.lr.ph, label %._crit_edge, !llvm.loop !10

69:                                               ; preds = %64, %.lr.ph
  %70 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #10
  br label %82

71:                                               ; preds = %._crit_edge
  %72 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt13unordered_mapIjjSt4hashIjESt8equal_toIjESaISt4pairIKjjEEEixERS5_(ptr noundef nonnull align 8 dereferenceable(56) %9, ptr noundef nonnull align 4 dereferenceable(4) %10)
          to label %73 unwind label %80

73:                                               ; preds = %71
  %74 = load i32, ptr %72, align 4, !tbaa !5
  %75 = add i32 %74, 1
  store i32 %75, ptr %72, align 4, !tbaa !5
  call void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %11) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #10
  %76 = add i32 %.0165, 1
  %77 = zext i32 %76 to i64
  %78 = call noundef i64 @_ZNKSt6vectorI10FaceRecordSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %45) #10
  %79 = icmp ugt i64 %78, %77
  br i1 %79, label %.lr.ph167, label %._crit_edge168, !llvm.loop !12

80:                                               ; preds = %71, %._crit_edge
  %81 = landingpad { ptr, i32 }
          cleanup
  br label %82

82:                                               ; preds = %80, %69
  %.pn156 = phi { ptr, i32 } [ %70, %69 ], [ %81, %80 ]
  call void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %11) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #10
  br label %350

._crit_edge172:                                   ; preds = %194, %._crit_edge168
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #10
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %26) #10
  store i32 0, ptr %26, align 4, !tbaa !5
  %83 = call noundef i64 @_ZNKSt6vectorI12VertexRecordSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #10
  %.not192 = icmp eq i64 %83, 0
  br i1 %.not192, label %._crit_edge189, label %.lr.ph188

.lr.ph188:                                        ; preds = %._crit_edge172
  %84 = getelementptr inbounds i8, ptr %27, i64 40
  %.sroa.234.0..sroa_idx = getelementptr inbounds i8, ptr %31, i64 8
  %.sroa.213.0..sroa_idx = getelementptr inbounds i8, ptr %41, i64 8
  br label %201

85:                                               ; preds = %.lr.ph171, %194
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %14) #10
  %86 = load i32, ptr %13, align 4, !tbaa !5
  %87 = zext i32 %86 to i64
  %88 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorI10EdgeRecordSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %48, i64 noundef %87) #10
  invoke void @_ZN10EdgeRecordC2ERKS_(ptr noundef nonnull align 8 dereferenceable(48) %14, ptr noundef nonnull align 8 dereferenceable(48) %88)
          to label %89 unwind label %97

89:                                               ; preds = %85
  %90 = call noundef i64 @_ZNKSt6vectorIjSaIjEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %49) #10
  %91 = icmp eq i64 %90, 2
  br i1 %91, label %92, label %194

92:                                               ; preds = %89
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %15) #10
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %15, i8 0, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %16) #10
  %93 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %49, i64 noundef 0) #10
  %94 = load i32, ptr %93, align 4, !tbaa !5
  %95 = zext i32 %94 to i64
  %96 = call noundef nonnull align 8 dereferenceable(120) ptr @_ZNSt6vectorI10FaceRecordSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %45, i64 noundef %95) #10
  invoke void @_ZN10FaceRecordC2ERKS_(ptr noundef nonnull align 8 dereferenceable(120) %17, ptr noundef nonnull align 8 dereferenceable(120) %96)
          to label %99 unwind label %113

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

99:                                               ; preds = %92
  %100 = invoke { <2 x float>, float } @_ZN7Surface17ComputeFaceNormalE10FaceRecord(ptr noundef nonnull align 8 dereferenceable(152) %1, ptr noundef nonnull %17)
          to label %101 unwind label %115

101:                                              ; preds = %99
  %.fca.0.extract82 = extractvalue { <2 x float>, float } %100, 0
  %.fca.1.extract83 = extractvalue { <2 x float>, float } %100, 1
  store <2 x float> %.fca.0.extract82, ptr %16, align 8
  store float %.fca.1.extract83, ptr %.sroa.285.0..sroa_idx, align 8
  %102 = call 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) %16)
  call void @_ZN10FaceRecordD2Ev(ptr noundef nonnull align 8 dereferenceable(120) %17) #10
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %16) #10
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %16) #10
  %103 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %49, i64 noundef 1) #10
  %104 = load i32, ptr %103, align 4, !tbaa !5
  %105 = zext i32 %104 to i64
  %106 = call noundef nonnull align 8 dereferenceable(120) ptr @_ZNSt6vectorI10FaceRecordSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %45, i64 noundef %105) #10
  invoke void @_ZN10FaceRecordC2ERKS_(ptr noundef nonnull align 8 dereferenceable(120) %17, ptr noundef nonnull align 8 dereferenceable(120) %106)
          to label %107 unwind label %113

107:                                              ; preds = %101
  %108 = invoke { <2 x float>, float } @_ZN7Surface17ComputeFaceNormalE10FaceRecord(ptr noundef nonnull align 8 dereferenceable(152) %1, ptr noundef nonnull %17)
          to label %109 unwind label %115

109:                                              ; preds = %107
  %.fca.0.extract82.1 = extractvalue { <2 x float>, float } %108, 0
  %.fca.1.extract83.1 = extractvalue { <2 x float>, float } %108, 1
  store <2 x float> %.fca.0.extract82.1, ptr %16, align 8
  store float %.fca.1.extract83.1, ptr %.sroa.285.0..sroa_idx, align 8
  %110 = call 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) %16)
  call void @_ZN10FaceRecordD2Ev(ptr noundef nonnull align 8 dereferenceable(120) %17) #10
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %16) #10
  %111 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN3glm3vecILi3EfLNS_9qualifierE0EEdVIfEERS2_T_(ptr noundef nonnull align 4 dereferenceable(12) %15, float noundef 2.000000e+00)
  %112 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt13unordered_mapIjSt6vectorIN3glm3vecILi3EfLNS1_9qualifierE0EEESaIS4_EESt4hashIjESt8equal_toIjESaISt4pairIKjS6_EEEixERSC_(ptr noundef nonnull align 8 dereferenceable(56) %4, ptr noundef nonnull align 4 dereferenceable(4) %13)
          to label %118 unwind label %159

113:                                              ; preds = %101, %92
  %114 = landingpad { ptr, i32 }
          cleanup
  br label %117

115:                                              ; preds = %107, %99
  %116 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN10FaceRecordD2Ev(ptr noundef nonnull align 8 dereferenceable(120) %17) #10
  br label %117

117:                                              ; preds = %115, %113
  %.pn152 = phi { ptr, i32 } [ %116, %115 ], [ %114, %113 ]
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %16) #10
  br label %193

118:                                              ; preds = %109
  %119 = call noundef i64 @_ZNKSt6vectorIN3glm3vecILi3EfLNS0_9qualifierE0EEESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %112) #10
  %120 = icmp eq i64 %119, 4
  br i1 %120, label %121, label %192

121:                                              ; preds = %118
  %122 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt13unordered_mapIjSt6vectorIN3glm3vecILi3EfLNS1_9qualifierE0EEESaIS4_EESt4hashIjESt8equal_toIjESaISt4pairIKjS6_EEEixERSC_(ptr noundef nonnull align 8 dereferenceable(56) %4, ptr noundef nonnull align 4 dereferenceable(4) %13)
          to label %123 unwind label %161

123:                                              ; preds = %121
  %124 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorIN3glm3vecILi3EfLNS0_9qualifierE0EEESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %122, i64 noundef 0) #10
  %.sroa.078.0.copyload = load <2 x float>, ptr %124, align 4
  %.sroa.279.0..sroa_idx = getelementptr inbounds i8, ptr %124, i64 8
  %.sroa.279.0.copyload = load float, ptr %.sroa.279.0..sroa_idx, align 4, !tbaa !9
  %125 = invoke noundef i32 @_ZN7Surface12getVertIndexEN3glm3vecILi3EfLNS0_9qualifierE0EEERSt6vectorIS3_SaIS3_EERSt13unordered_mapIfS8_IfS8_IfjSt4hashIfESt8equal_toIfESaISt4pairIKfjEEESA_SC_SaISD_ISE_SH_EEESA_SC_SaISD_ISE_SK_EEE(ptr noundef nonnull align 8 dereferenceable(152) %1, <2 x float> %.sroa.078.0.copyload, float %.sroa.279.0.copyload, ptr noundef nonnull align 8 dereferenceable(24) %6, ptr noundef nonnull align 8 dereferenceable(56) %7)
          to label %126 unwind label %161

126:                                              ; preds = %123
  %127 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt13unordered_mapIjSt6vectorIN3glm3vecILi3EfLNS1_9qualifierE0EEESaIS4_EESt4hashIjESt8equal_toIjESaISt4pairIKjS6_EEEixERSC_(ptr noundef nonnull align 8 dereferenceable(56) %4, ptr noundef nonnull align 4 dereferenceable(4) %13)
          to label %128 unwind label %163

128:                                              ; preds = %126
  %129 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorIN3glm3vecILi3EfLNS0_9qualifierE0EEESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %127, i64 noundef 1) #10
  %.sroa.072.0.copyload = load <2 x float>, ptr %129, align 4
  %.sroa.273.0..sroa_idx = getelementptr inbounds i8, ptr %129, i64 8
  %.sroa.273.0.copyload = load float, ptr %.sroa.273.0..sroa_idx, align 4, !tbaa !9
  %130 = invoke noundef i32 @_ZN7Surface12getVertIndexEN3glm3vecILi3EfLNS0_9qualifierE0EEERSt6vectorIS3_SaIS3_EERSt13unordered_mapIfS8_IfS8_IfjSt4hashIfESt8equal_toIfESaISt4pairIKfjEEESA_SC_SaISD_ISE_SH_EEESA_SC_SaISD_ISE_SK_EEE(ptr noundef nonnull align 8 dereferenceable(152) %1, <2 x float> %.sroa.072.0.copyload, float %.sroa.273.0.copyload, ptr noundef nonnull align 8 dereferenceable(24) %6, ptr noundef nonnull align 8 dereferenceable(56) %7)
          to label %131 unwind label %163

131:                                              ; preds = %128
  %132 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt13unordered_mapIjSt6vectorIN3glm3vecILi3EfLNS1_9qualifierE0EEESaIS4_EESt4hashIjESt8equal_toIjESaISt4pairIKjS6_EEEixERSC_(ptr noundef nonnull align 8 dereferenceable(56) %4, ptr noundef nonnull align 4 dereferenceable(4) %13)
          to label %133 unwind label %165

133:                                              ; preds = %131
  %134 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorIN3glm3vecILi3EfLNS0_9qualifierE0EEESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %132, i64 noundef 2) #10
  %.sroa.066.0.copyload = load <2 x float>, ptr %134, align 4
  %.sroa.267.0..sroa_idx = getelementptr inbounds i8, ptr %134, i64 8
  %.sroa.267.0.copyload = load float, ptr %.sroa.267.0..sroa_idx, align 4, !tbaa !9
  %135 = invoke noundef i32 @_ZN7Surface12getVertIndexEN3glm3vecILi3EfLNS0_9qualifierE0EEERSt6vectorIS3_SaIS3_EERSt13unordered_mapIfS8_IfS8_IfjSt4hashIfESt8equal_toIfESaISt4pairIKfjEEESA_SC_SaISD_ISE_SH_EEESA_SC_SaISD_ISE_SK_EEE(ptr noundef nonnull align 8 dereferenceable(152) %1, <2 x float> %.sroa.066.0.copyload, float %.sroa.267.0.copyload, ptr noundef nonnull align 8 dereferenceable(24) %6, ptr noundef nonnull align 8 dereferenceable(56) %7)
          to label %136 unwind label %165

136:                                              ; preds = %133
  %137 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt13unordered_mapIjSt6vectorIN3glm3vecILi3EfLNS1_9qualifierE0EEESaIS4_EESt4hashIjESt8equal_toIjESaISt4pairIKjS6_EEEixERSC_(ptr noundef nonnull align 8 dereferenceable(56) %4, ptr noundef nonnull align 4 dereferenceable(4) %13)
          to label %138 unwind label %167

138:                                              ; preds = %136
  %139 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorIN3glm3vecILi3EfLNS0_9qualifierE0EEESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %137, i64 noundef 3) #10
  %.sroa.060.0.copyload = load <2 x float>, ptr %139, align 4
  %.sroa.261.0..sroa_idx = getelementptr inbounds i8, ptr %139, i64 8
  %.sroa.261.0.copyload = load float, ptr %.sroa.261.0..sroa_idx, align 4, !tbaa !9
  %140 = invoke noundef i32 @_ZN7Surface12getVertIndexEN3glm3vecILi3EfLNS0_9qualifierE0EEERSt6vectorIS3_SaIS3_EERSt13unordered_mapIfS8_IfS8_IfjSt4hashIfESt8equal_toIfESaISt4pairIKfjEEESA_SC_SaISD_ISE_SH_EEESA_SC_SaISD_ISE_SK_EEE(ptr noundef nonnull align 8 dereferenceable(152) %1, <2 x float> %.sroa.060.0.copyload, float %.sroa.261.0.copyload, ptr noundef nonnull align 8 dereferenceable(24) %6, ptr noundef nonnull align 8 dereferenceable(56) %7)
          to label %141 unwind label %167

141:                                              ; preds = %138
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %18) #10
  %142 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt13unordered_mapIjSt6vectorIN3glm3vecILi3EfLNS1_9qualifierE0EEESaIS4_EESt4hashIjESt8equal_toIjESaISt4pairIKjS6_EEEixERSC_(ptr noundef nonnull align 8 dereferenceable(56) %4, ptr noundef nonnull align 4 dereferenceable(4) %13)
          to label %143 unwind label %169

143:                                              ; preds = %141
  %144 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorIN3glm3vecILi3EfLNS0_9qualifierE0EEESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %142, i64 noundef 0) #10
  %.sroa.056.0.copyload = load <2 x float>, ptr %144, align 4
  %.sroa.257.0..sroa_idx = getelementptr inbounds i8, ptr %144, i64 8
  %.sroa.257.0.copyload = load float, ptr %.sroa.257.0..sroa_idx, align 4, !tbaa !9
  %145 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt13unordered_mapIjSt6vectorIN3glm3vecILi3EfLNS1_9qualifierE0EEESaIS4_EESt4hashIjESt8equal_toIjESaISt4pairIKjS6_EEEixERSC_(ptr noundef nonnull align 8 dereferenceable(56) %4, ptr noundef nonnull align 4 dereferenceable(4) %13)
          to label %146 unwind label %169

146:                                              ; preds = %143
  %147 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorIN3glm3vecILi3EfLNS0_9qualifierE0EEESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %145, i64 noundef 1) #10
  %.sroa.054.0.copyload = load <2 x float>, ptr %147, align 4
  %.sroa.255.0..sroa_idx = getelementptr inbounds i8, ptr %147, i64 8
  %.sroa.255.0.copyload = load float, ptr %.sroa.255.0..sroa_idx, align 4, !tbaa !9
  %148 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt13unordered_mapIjSt6vectorIN3glm3vecILi3EfLNS1_9qualifierE0EEESaIS4_EESt4hashIjESt8equal_toIjESaISt4pairIKjS6_EEEixERSC_(ptr noundef nonnull align 8 dereferenceable(56) %4, ptr noundef nonnull align 4 dereferenceable(4) %13)
          to label %149 unwind label %169

149:                                              ; preds = %146
  %150 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorIN3glm3vecILi3EfLNS0_9qualifierE0EEESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %148, i64 noundef 2) #10
  %.sroa.052.0.copyload = load <2 x float>, ptr %150, align 4
  %.sroa.253.0..sroa_idx = getelementptr inbounds i8, ptr %150, i64 8
  %.sroa.253.0.copyload = load float, ptr %.sroa.253.0..sroa_idx, align 4, !tbaa !9
  %151 = invoke { <2 x float>, float } @_ZN7Surface17ComputeFaceNormalEN3glm3vecILi3EfLNS0_9qualifierE0EEES3_S3_(ptr noundef nonnull align 8 dereferenceable(152) %1, <2 x float> %.sroa.056.0.copyload, float %.sroa.257.0.copyload, <2 x float> %.sroa.054.0.copyload, float %.sroa.255.0.copyload, <2 x float> %.sroa.052.0.copyload, float %.sroa.253.0.copyload)
          to label %152 unwind label %169

152:                                              ; preds = %149
  %.fca.0.extract42 = extractvalue { <2 x float>, float } %151, 0
  %.fca.1.extract43 = extractvalue { <2 x float>, float } %151, 1
  store <2 x float> %.fca.0.extract42, ptr %18, align 8
  store float %.fca.1.extract43, ptr %.sroa.245.0..sroa_idx, align 8
  %153 = invoke noundef float @_ZN3glm3dotILi3EfLNS_9qualifierE0EEET0_RKNS_3vecIXT_ES2_XT1_EEES6_(ptr noundef nonnull align 4 dereferenceable(12) %18, ptr noundef nonnull align 4 dereferenceable(12) %15)
          to label %154 unwind label %169

154:                                              ; preds = %152
  %155 = fcmp ogt float %153, 0.000000e+00
  br i1 %155, label %156, label %176

156:                                              ; preds = %154
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %19) #10
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %20) #10
  store i32 %125, ptr %20, align 4, !tbaa !5
  store i32 %130, ptr %53, align 4, !tbaa !5
  store i32 %135, ptr %54, align 4, !tbaa !5
  store i32 %140, ptr %55, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %21) #10
  call void @_ZNSaIjEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %21) #10
  invoke void @_ZNSt6vectorIjSaIjEEC2ESt16initializer_listIjERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %19, ptr nonnull %20, i64 4, ptr noundef nonnull align 1 dereferenceable(1) %21)
          to label %157 unwind label %171

157:                                              ; preds = %156
  invoke void @_ZNSt6vectorIS_IjSaIjEESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %8, ptr noundef nonnull align 8 dereferenceable(24) %19)
          to label %158 unwind label %173

158:                                              ; preds = %157
  call void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %19) #10
  call void @_ZNSt15__new_allocatorIjED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %21) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %21) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %20) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %19) #10
  br label %184

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

161:                                              ; preds = %123, %121
  %162 = landingpad { ptr, i32 }
          cleanup
  br label %193

163:                                              ; preds = %128, %126
  %164 = landingpad { ptr, i32 }
          cleanup
  br label %193

165:                                              ; preds = %133, %131
  %166 = landingpad { ptr, i32 }
          cleanup
  br label %193

167:                                              ; preds = %138, %136
  %168 = landingpad { ptr, i32 }
          cleanup
  br label %193

169:                                              ; preds = %152, %149, %146, %143, %141
  %170 = landingpad { ptr, i32 }
          cleanup
  br label %191

171:                                              ; preds = %156
  %172 = landingpad { ptr, i32 }
          cleanup
  br label %175

173:                                              ; preds = %157
  %174 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %19) #10
  br label %175

175:                                              ; preds = %173, %171
  %.pn144 = phi { ptr, i32 } [ %174, %173 ], [ %172, %171 ]
  call void @_ZNSt15__new_allocatorIjED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %21) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %21) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %20) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %19) #10
  br label %191

176:                                              ; preds = %154
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %22) #10
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %23) #10
  store i32 %140, ptr %23, align 4, !tbaa !5
  store i32 %135, ptr %50, align 4, !tbaa !5
  store i32 %130, ptr %51, align 4, !tbaa !5
  store i32 %125, ptr %52, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %24) #10
  call void @_ZNSaIjEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %24) #10
  invoke void @_ZNSt6vectorIjSaIjEEC2ESt16initializer_listIjERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %22, ptr nonnull %23, i64 4, ptr noundef nonnull align 1 dereferenceable(1) %24)
          to label %177 unwind label %179

177:                                              ; preds = %176
  invoke void @_ZNSt6vectorIS_IjSaIjEESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %8, ptr noundef nonnull align 8 dereferenceable(24) %22)
          to label %178 unwind label %181

178:                                              ; preds = %177
  call void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %22) #10
  call void @_ZNSt15__new_allocatorIjED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %24) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %24) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %23) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %22) #10
  br label %184

179:                                              ; preds = %176
  %180 = landingpad { ptr, i32 }
          cleanup
  br label %183

181:                                              ; preds = %177
  %182 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %22) #10
  br label %183

183:                                              ; preds = %181, %179
  %.pn142 = phi { ptr, i32 } [ %182, %181 ], [ %180, %179 ]
  call void @_ZNSt15__new_allocatorIjED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %24) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %24) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %23) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %22) #10
  br label %191

184:                                              ; preds = %178, %158
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %25) #10
  store i32 4, ptr %25, align 4, !tbaa !5
  %185 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt13unordered_mapIjjSt4hashIjESt8equal_toIjESaISt4pairIKjjEEEixEOj(ptr noundef nonnull align 8 dereferenceable(56) %9, ptr noundef nonnull align 4 dereferenceable(4) %25)
          to label %186 unwind label %189

186:                                              ; preds = %184
  %187 = load i32, ptr %185, align 4, !tbaa !5
  %188 = add i32 %187, 1
  store i32 %188, ptr %185, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %25) #10
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %18) #10
  br label %192

189:                                              ; preds = %184
  %190 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %25) #10
  br label %191

191:                                              ; preds = %189, %183, %175, %169
  %.pn146 = phi { ptr, i32 } [ %190, %189 ], [ %.pn144, %175 ], [ %.pn142, %183 ], [ %170, %169 ]
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %18) #10
  br label %193

192:                                              ; preds = %186, %118
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %15) #10
  br label %194

193:                                              ; preds = %161, %165, %191, %167, %163, %159, %117
  %.pn152.pn = phi { ptr, i32 } [ %.pn152, %117 ], [ %160, %159 ], [ %162, %161 ], [ %164, %163 ], [ %166, %165 ], [ %.pn146, %191 ], [ %168, %167 ]
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %15) #10
  call void @_ZN10EdgeRecordD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %14) #10
  br label %200

194:                                              ; preds = %192, %89
  call void @_ZN10EdgeRecordD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %14) #10
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %14) #10
  %195 = load i32, ptr %13, align 4, !tbaa !5
  %196 = add i32 %195, 1
  store i32 %196, ptr %13, align 4, !tbaa !5
  %197 = zext i32 %196 to i64
  %198 = call noundef i64 @_ZNKSt13unordered_mapIjSt6vectorIN3glm3vecILi3EfLNS1_9qualifierE0EEESaIS4_EESt4hashIjESt8equal_toIjESaISt4pairIKjS6_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(56) %4) #10
  %199 = icmp ugt i64 %198, %197
  br i1 %199, label %85, label %._crit_edge172, !llvm.loop !13

200:                                              ; preds = %193, %97
  %.pn152.pn.pn = phi { ptr, i32 } [ %.pn152.pn, %193 ], [ %98, %97 ]
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %14) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #10
  br label %350

._crit_edge189:                                   ; preds = %319, %._crit_edge172
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %26) #10
  invoke void @_ZN6ObjectC1Ev(ptr noundef nonnull align 8 dereferenceable(152) %0)
          to label %332 unwind label %345

201:                                              ; preds = %.lr.ph188, %319
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %27) #10
  %202 = load i32, ptr %26, align 4, !tbaa !5
  %203 = zext i32 %202 to i64
  %204 = call noundef nonnull align 8 dereferenceable(64) ptr @_ZNSt6vectorI12VertexRecordSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %203) #10
  invoke void @_ZN12VertexRecordC2ERKS_(ptr noundef nonnull align 8 dereferenceable(64) %27, ptr noundef nonnull align 8 dereferenceable(64) %204)
          to label %205 unwind label %208

205:                                              ; preds = %201
  %206 = call noundef i64 @_ZNKSt6vectorIjSaIjEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %84) #10
  %207 = icmp ult i64 %206, 3
  br i1 %207, label %319, label %210

208:                                              ; preds = %201
  %209 = landingpad { ptr, i32 }
          cleanup
  br label %331

210:                                              ; preds = %205
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %28) #10
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %28, i8 0, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %29) #10
  %211 = call ptr @_ZNSt6vectorIjSaIjEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %84) #10
  store ptr %211, ptr %29, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %30) #10
  %212 = call ptr @_ZNSt6vectorIjSaIjEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %84) #10
  store ptr %212, ptr %30, align 8
  %213 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPjSt6vectorIjSaIjEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %29, ptr noundef nonnull align 8 dereferenceable(8) %30) #10
  br i1 %213, label %.lr.ph174, label %._crit_edge175

._crit_edge175:                                   ; preds = %224, %210
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %30) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %29) #10
  %214 = call noundef i64 @_ZNKSt6vectorIjSaIjEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %84) #10
  %215 = uitofp i64 %214 to float
  %216 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN3glm3vecILi3EfLNS_9qualifierE0EEdVIfEERS2_T_(ptr noundef nonnull align 4 dereferenceable(12) %28, float noundef %215)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %33) #10
  call void @_ZNSt6vectorIN3glm3vecILi3EfLNS0_9qualifierE0EEESaIS3_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %33) #10
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %34) #10
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %34, i8 0, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %35) #10
  %217 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt13unordered_mapIjSt6vectorIN3glm3vecILi3EfLNS1_9qualifierE0EEESaIS4_EESt4hashIjESt8equal_toIjESaISt4pairIKjS6_EEEixERSC_(ptr noundef nonnull align 8 dereferenceable(56) %3, ptr noundef nonnull align 4 dereferenceable(4) %26)
          to label %233 unwind label %237

.lr.ph174:                                        ; preds = %210, %224
  %218 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPjSt6vectorIjSaIjEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %29) #10
  %219 = load i32, ptr %218, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %31) #10
  %220 = zext i32 %219 to i64
  %221 = call noundef nonnull align 8 dereferenceable(120) ptr @_ZNSt6vectorI10FaceRecordSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %45, i64 noundef %220) #10
  invoke void @_ZN10FaceRecordC2ERKS_(ptr noundef nonnull align 8 dereferenceable(120) %32, ptr noundef nonnull align 8 dereferenceable(120) %221)
          to label %222 unwind label %228

222:                                              ; preds = %.lr.ph174
  %223 = invoke { <2 x float>, float } @_ZN7Surface17ComputeFaceNormalE10FaceRecord(ptr noundef nonnull align 8 dereferenceable(152) %1, ptr noundef nonnull %32)
          to label %224 unwind label %230

224:                                              ; preds = %222
  %.fca.0.extract31 = extractvalue { <2 x float>, float } %223, 0
  %.fca.1.extract32 = extractvalue { <2 x float>, float } %223, 1
  store <2 x float> %.fca.0.extract31, ptr %31, align 8
  store float %.fca.1.extract32, ptr %.sroa.234.0..sroa_idx, align 8
  %225 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN3glm3vecILi3EfLNS_9qualifierE0EEpLIfEERS2_RKNS0_ILi3ET_LS1_0EEE(ptr noundef nonnull align 4 dereferenceable(12) %28, ptr noundef nonnull align 4 dereferenceable(12) %31)
  call void @_ZN10FaceRecordD2Ev(ptr noundef nonnull align 8 dereferenceable(120) %32) #10
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %31) #10
  %226 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPjSt6vectorIjSaIjEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %29) #10
  %227 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPjSt6vectorIjSaIjEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %29, ptr noundef nonnull align 8 dereferenceable(8) %30) #10
  br i1 %227, label %.lr.ph174, label %._crit_edge175

228:                                              ; preds = %.lr.ph174
  %229 = landingpad { ptr, i32 }
          cleanup
  br label %232

230:                                              ; preds = %222
  %231 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN10FaceRecordD2Ev(ptr noundef nonnull align 8 dereferenceable(120) %32) #10
  br label %232

232:                                              ; preds = %230, %228
  %.pn138 = phi { ptr, i32 } [ %231, %230 ], [ %229, %228 ]
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %31) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %30) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %29) #10
  br label %330

233:                                              ; preds = %._crit_edge175
  %234 = call noundef i64 @_ZNKSt6vectorIN3glm3vecILi3EfLNS0_9qualifierE0EEESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %217) #10
  %235 = trunc i64 %234 to i32
  store i32 %235, ptr %35, align 4, !tbaa !5
  %.not193 = icmp eq i32 %235, 0
  br i1 %.not193, label %._crit_edge179, label %.lr.ph178

._crit_edge179:                                   ; preds = %242, %233
  %.lcssa = phi i32 [ 0, %233 ], [ %244, %242 ]
  %236 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN3glm3vecILi3EfLNS_9qualifierE0EEdVIjEERS2_T_(ptr noundef nonnull align 4 dereferenceable(12) %34, i32 noundef %.lcssa)
  invoke void @_ZNSt6vectorIN3glm3vecILi3EfLNS0_9qualifierE0EEESaIS3_EE9push_backERKS3_(ptr noundef nonnull align 8 dereferenceable(24) %33, ptr noundef nonnull align 4 dereferenceable(12) %34)
          to label %249 unwind label %237

237:                                              ; preds = %._crit_edge179, %._crit_edge175
  %238 = landingpad { ptr, i32 }
          cleanup
  br label %329

.lr.ph178:                                        ; preds = %233, %242
  %indvars.iv201 = phi i64 [ %indvars.iv.next202, %242 ], [ 0, %233 ]
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %36) #10
  %239 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt13unordered_mapIjSt6vectorIN3glm3vecILi3EfLNS1_9qualifierE0EEESaIS4_EESt4hashIjESt8equal_toIjESaISt4pairIKjS6_EEEixERSC_(ptr noundef nonnull align 8 dereferenceable(56) %3, ptr noundef nonnull align 4 dereferenceable(4) %26)
          to label %240 unwind label %247

240:                                              ; preds = %.lr.ph178
  %241 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorIN3glm3vecILi3EfLNS0_9qualifierE0EEESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %239, i64 noundef %indvars.iv201) #10
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %36, ptr noundef nonnull align 4 dereferenceable(12) %241, i64 12, i1 false), !tbaa.struct !14
  invoke void @_ZNSt6vectorIN3glm3vecILi3EfLNS0_9qualifierE0EEESaIS3_EE9push_backERKS3_(ptr noundef nonnull align 8 dereferenceable(24) %33, ptr noundef nonnull align 4 dereferenceable(12) %36)
          to label %242 unwind label %247

242:                                              ; preds = %240
  %243 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN3glm3vecILi3EfLNS_9qualifierE0EEpLIfEERS2_RKNS0_ILi3ET_LS1_0EEE(ptr noundef nonnull align 4 dereferenceable(12) %34, ptr noundef nonnull align 4 dereferenceable(12) %36)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %36) #10
  %indvars.iv.next202 = add nuw nsw i64 %indvars.iv201, 1
  %244 = load i32, ptr %35, align 4, !tbaa !5
  %245 = zext i32 %244 to i64
  %246 = icmp ult i64 %indvars.iv.next202, %245
  br i1 %246, label %.lr.ph178, label %._crit_edge179, !llvm.loop !15

247:                                              ; preds = %240, %.lr.ph178
  %248 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %36) #10
  br label %329

249:                                              ; preds = %._crit_edge179
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %37) #10
  invoke void @_ZNSt6vectorIN3glm3vecILi3EfLNS0_9qualifierE0EEESaIS3_EEC2ERKS5_(ptr noundef nonnull align 8 dereferenceable(24) %38, ptr noundef nonnull align 8 dereferenceable(24) %33)
          to label %250 unwind label %274

250:                                              ; preds = %249
  invoke void @_Z21projectPolygonToPlaneSt6vectorIN3glm3vecILi3EfLNS0_9qualifierE0EEESaIS3_EE(ptr dead_on_unwind nonnull writable sret(%"class.std::vector.99") align 8 %37, ptr noundef nonnull %38)
          to label %251 unwind label %276

251:                                              ; preds = %250
  call void @_ZNSt6vectorIN3glm3vecILi3EfLNS0_9qualifierE0EEESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %38) #10
  %252 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorIN3glm3vecILi2EfLNS0_9qualifierE0EEESaIS3_EE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %37) #10
  %.sroa.027.0.copyload = load <2 x float>, ptr %252, align 4
  call void @_ZNSt6vectorIN3glm3vecILi2EfLNS0_9qualifierE0EEESaIS3_EE8pop_backEv(ptr noundef nonnull align 8 dereferenceable(24) %37) #10
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %39) #10
  invoke void @_ZNSt6vectorIN3glm3vecILi2EfLNS0_9qualifierE0EEESaIS3_EEC2ERKS5_(ptr noundef nonnull align 8 dereferenceable(24) %40, ptr noundef nonnull align 8 dereferenceable(24) %37)
          to label %253 unwind label %278

253:                                              ; preds = %251
  %254 = load i32, ptr %35, align 4, !tbaa !5
  invoke void @_Z20OrderPolygonVerticesSt6vectorIN3glm3vecILi2EfLNS0_9qualifierE0EEESaIS3_EES3_j(ptr dead_on_unwind nonnull writable sret(%"class.std::vector.80") align 8 %39, ptr noundef nonnull %40, <2 x float> %.sroa.027.0.copyload, i32 noundef %254)
          to label %255 unwind label %280

255:                                              ; preds = %253
  call void @_ZNSt6vectorIN3glm3vecILi2EfLNS0_9qualifierE0EEESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %40) #10
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %41) #10
  %256 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %39, i64 noundef 0) #10
  %257 = load i32, ptr %256, align 4, !tbaa !5
  %258 = zext i32 %257 to i64
  %259 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorIN3glm3vecILi3EfLNS0_9qualifierE0EEESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %33, i64 noundef %258) #10
  %.sroa.024.0.copyload = load <2 x float>, ptr %259, align 4
  %.sroa.225.0..sroa_idx = getelementptr inbounds i8, ptr %259, i64 8
  %.sroa.225.0.copyload = load float, ptr %.sroa.225.0..sroa_idx, align 4, !tbaa !9
  %260 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %39, i64 noundef 1) #10
  %261 = load i32, ptr %260, align 4, !tbaa !5
  %262 = zext i32 %261 to i64
  %263 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorIN3glm3vecILi3EfLNS0_9qualifierE0EEESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %33, i64 noundef %262) #10
  %.sroa.022.0.copyload = load <2 x float>, ptr %263, align 4
  %.sroa.223.0..sroa_idx = getelementptr inbounds i8, ptr %263, i64 8
  %.sroa.223.0.copyload = load float, ptr %.sroa.223.0..sroa_idx, align 4, !tbaa !9
  %264 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %39, i64 noundef 2) #10
  %265 = load i32, ptr %264, align 4, !tbaa !5
  %266 = zext i32 %265 to i64
  %267 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorIN3glm3vecILi3EfLNS0_9qualifierE0EEESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %33, i64 noundef %266) #10
  %.sroa.020.0.copyload = load <2 x float>, ptr %267, align 4
  %.sroa.221.0..sroa_idx = getelementptr inbounds i8, ptr %267, i64 8
  %.sroa.221.0.copyload = load float, ptr %.sroa.221.0..sroa_idx, align 4, !tbaa !9
  %268 = invoke { <2 x float>, float } @_ZN7Surface17ComputeFaceNormalEN3glm3vecILi3EfLNS0_9qualifierE0EEES3_S3_(ptr noundef nonnull align 8 dereferenceable(152) %1, <2 x float> %.sroa.024.0.copyload, float %.sroa.225.0.copyload, <2 x float> %.sroa.022.0.copyload, float %.sroa.223.0.copyload, <2 x float> %.sroa.020.0.copyload, float %.sroa.221.0.copyload)
          to label %269 unwind label %282

269:                                              ; preds = %255
  %.fca.0.extract = extractvalue { <2 x float>, float } %268, 0
  %.fca.1.extract = extractvalue { <2 x float>, float } %268, 1
  store <2 x float> %.fca.0.extract, ptr %41, align 8
  store float %.fca.1.extract, ptr %.sroa.213.0..sroa_idx, align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %42) #10
  call void @_ZNSt6vectorIjSaIjEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %42) #10
  %270 = invoke noundef float @_ZN3glm3dotILi3EfLNS_9qualifierE0EEET0_RKNS_3vecIXT_ES2_XT1_EEES6_(ptr noundef nonnull align 4 dereferenceable(12) %41, ptr noundef nonnull align 4 dereferenceable(12) %28)
          to label %271 unwind label %284

271:                                              ; preds = %269
  %272 = fcmp ogt float %270, 0.000000e+00
  %273 = load i32, ptr %35, align 4, !tbaa !5
  %.not195 = icmp eq i32 %273, 0
  br i1 %272, label %.preheader, label %.preheader159

.preheader159:                                    ; preds = %271
  br i1 %.not195, label %._crit_edge183.invoke, label %.lr.ph182

.preheader:                                       ; preds = %271
  br i1 %.not195, label %._crit_edge183.invoke, label %.lr.ph185

274:                                              ; preds = %249
  %275 = landingpad { ptr, i32 }
          cleanup
  br label %328

276:                                              ; preds = %250
  %277 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt6vectorIN3glm3vecILi3EfLNS0_9qualifierE0EEESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %38) #10
  br label %328

278:                                              ; preds = %251
  %279 = landingpad { ptr, i32 }
          cleanup
  br label %327

280:                                              ; preds = %253
  %281 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt6vectorIN3glm3vecILi2EfLNS0_9qualifierE0EEESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %40) #10
  br label %327

282:                                              ; preds = %255
  %283 = landingpad { ptr, i32 }
          cleanup
  br label %326

284:                                              ; preds = %._crit_edge183.invoke, %314, %269
  %285 = landingpad { ptr, i32 }
          cleanup
  br label %325

.lr.ph185:                                        ; preds = %.preheader, %292
  %indvars.iv204 = phi i64 [ %indvars.iv.next205, %292 ], [ 0, %.preheader ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %43) #10
  %286 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %39, i64 noundef %indvars.iv204) #10
  %287 = load i32, ptr %286, align 4, !tbaa !5
  %288 = zext i32 %287 to i64
  %289 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorIN3glm3vecILi3EfLNS0_9qualifierE0EEESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %33, i64 noundef %288) #10
  %.sroa.07.0.copyload = load <2 x float>, ptr %289, align 4
  %.sroa.28.0..sroa_idx = getelementptr inbounds i8, ptr %289, i64 8
  %.sroa.28.0.copyload = load float, ptr %.sroa.28.0..sroa_idx, align 4, !tbaa !9
  %290 = invoke noundef i32 @_ZN7Surface12getVertIndexEN3glm3vecILi3EfLNS0_9qualifierE0EEERSt6vectorIS3_SaIS3_EERSt13unordered_mapIfS8_IfS8_IfjSt4hashIfESt8equal_toIfESaISt4pairIKfjEEESA_SC_SaISD_ISE_SH_EEESA_SC_SaISD_ISE_SK_EEE(ptr noundef nonnull align 8 dereferenceable(152) %1, <2 x float> %.sroa.07.0.copyload, float %.sroa.28.0.copyload, ptr noundef nonnull align 8 dereferenceable(24) %6, ptr noundef nonnull align 8 dereferenceable(56) %7)
          to label %291 unwind label %296

291:                                              ; preds = %.lr.ph185
  store i32 %290, ptr %43, align 4, !tbaa !5
  invoke void @_ZNSt6vectorIjSaIjEE9push_backERKj(ptr noundef nonnull align 8 dereferenceable(24) %42, ptr noundef nonnull align 4 dereferenceable(4) %43)
          to label %292 unwind label %296

292:                                              ; preds = %291
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %43) #10
  %indvars.iv.next205 = add nuw nsw i64 %indvars.iv204, 1
  %293 = load i32, ptr %35, align 4, !tbaa !5
  %294 = zext i32 %293 to i64
  %295 = icmp ult i64 %indvars.iv.next205, %294
  br i1 %295, label %.lr.ph185, label %._crit_edge183.invoke, !llvm.loop !16

296:                                              ; preds = %291, %.lr.ph185
  %297 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %43) #10
  br label %325

._crit_edge183.invoke:                            ; preds = %308, %292, %.preheader, %.preheader159
  invoke void @_ZNSt6vectorIS_IjSaIjEESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %8, ptr noundef nonnull align 8 dereferenceable(24) %42)
          to label %314 unwind label %284

.lr.ph182:                                        ; preds = %.preheader159, %308
  %298 = phi i32 [ %310, %308 ], [ %273, %.preheader159 ]
  %.0105181 = phi i32 [ %309, %308 ], [ 0, %.preheader159 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %44) #10
  %299 = xor i32 %.0105181, -1
  %300 = add i32 %298, %299
  %301 = zext i32 %300 to i64
  %302 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %39, i64 noundef %301) #10
  %303 = load i32, ptr %302, align 4, !tbaa !5
  %304 = zext i32 %303 to i64
  %305 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorIN3glm3vecILi3EfLNS0_9qualifierE0EEESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %33, i64 noundef %304) #10
  %.sroa.01.0.copyload = load <2 x float>, ptr %305, align 4
  %.sroa.22.0..sroa_idx = getelementptr inbounds i8, ptr %305, i64 8
  %.sroa.22.0.copyload = load float, ptr %.sroa.22.0..sroa_idx, align 4, !tbaa !9
  %306 = invoke noundef i32 @_ZN7Surface12getVertIndexEN3glm3vecILi3EfLNS0_9qualifierE0EEERSt6vectorIS3_SaIS3_EERSt13unordered_mapIfS8_IfS8_IfjSt4hashIfESt8equal_toIfESaISt4pairIKfjEEESA_SC_SaISD_ISE_SH_EEESA_SC_SaISD_ISE_SK_EEE(ptr noundef nonnull align 8 dereferenceable(152) %1, <2 x float> %.sroa.01.0.copyload, float %.sroa.22.0.copyload, ptr noundef nonnull align 8 dereferenceable(24) %6, ptr noundef nonnull align 8 dereferenceable(56) %7)
          to label %307 unwind label %312

307:                                              ; preds = %.lr.ph182
  store i32 %306, ptr %44, align 4, !tbaa !5
  invoke void @_ZNSt6vectorIjSaIjEE9push_backERKj(ptr noundef nonnull align 8 dereferenceable(24) %42, ptr noundef nonnull align 4 dereferenceable(4) %44)
          to label %308 unwind label %312

308:                                              ; preds = %307
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %44) #10
  %309 = add nuw i32 %.0105181, 1
  %310 = load i32, ptr %35, align 4, !tbaa !5
  %311 = icmp ult i32 %309, %310
  br i1 %311, label %.lr.ph182, label %._crit_edge183.invoke, !llvm.loop !17

312:                                              ; preds = %307, %.lr.ph182
  %313 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %44) #10
  br label %325

314:                                              ; preds = %._crit_edge183.invoke
  %315 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt13unordered_mapIjjSt4hashIjESt8equal_toIjESaISt4pairIKjjEEEixERS5_(ptr noundef nonnull align 8 dereferenceable(56) %9, ptr noundef nonnull align 4 dereferenceable(4) %35)
          to label %316 unwind label %284

316:                                              ; preds = %314
  %317 = load i32, ptr %315, align 4, !tbaa !5
  %318 = add i32 %317, 1
  store i32 %318, ptr %315, align 4, !tbaa !5
  call void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %42) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %42) #10
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %41) #10
  call void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %39) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %39) #10
  call void @_ZNSt6vectorIN3glm3vecILi2EfLNS0_9qualifierE0EEESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %37) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %37) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %35) #10
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %34) #10
  call void @_ZNSt6vectorIN3glm3vecILi3EfLNS0_9qualifierE0EEESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %33) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %33) #10
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %28) #10
  br label %319

319:                                              ; preds = %205, %316
  call void @_ZN12VertexRecordD2Ev(ptr noundef nonnull align 8 dereferenceable(64) %27) #10
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %27) #10
  %320 = load i32, ptr %26, align 4, !tbaa !5
  %321 = add i32 %320, 1
  store i32 %321, ptr %26, align 4, !tbaa !5
  %322 = zext i32 %321 to i64
  %323 = call noundef i64 @_ZNKSt6vectorI12VertexRecordSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #10
  %324 = icmp ugt i64 %323, %322
  br i1 %324, label %201, label %._crit_edge189, !llvm.loop !18

325:                                              ; preds = %312, %296, %284
  %.pn = phi { ptr, i32 } [ %297, %296 ], [ %285, %284 ], [ %313, %312 ]
  call void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %42) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %42) #10
  br label %326

326:                                              ; preds = %325, %282
  %.pn.pn = phi { ptr, i32 } [ %.pn, %325 ], [ %283, %282 ]
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %41) #10
  call void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %39) #10
  br label %327

327:                                              ; preds = %326, %280, %278
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %326 ], [ %281, %280 ], [ %279, %278 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %39) #10
  call void @_ZNSt6vectorIN3glm3vecILi2EfLNS0_9qualifierE0EEESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %37) #10
  br label %328

328:                                              ; preds = %327, %276, %274
  %.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn, %327 ], [ %277, %276 ], [ %275, %274 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %37) #10
  br label %329

329:                                              ; preds = %328, %247, %237
  %.pn136 = phi { ptr, i32 } [ %248, %247 ], [ %.pn.pn.pn.pn, %328 ], [ %238, %237 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %35) #10
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %34) #10
  call void @_ZNSt6vectorIN3glm3vecILi3EfLNS0_9qualifierE0EEESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %33) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %33) #10
  br label %330

330:                                              ; preds = %329, %232
  %.pn138.pn = phi { ptr, i32 } [ %.pn138, %232 ], [ %.pn136, %329 ]
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %28) #10
  call void @_ZN12VertexRecordD2Ev(ptr noundef nonnull align 8 dereferenceable(64) %27) #10
  br label %331

331:                                              ; preds = %330, %208
  %.pn138.pn.pn = phi { ptr, i32 } [ %.pn138.pn, %330 ], [ %209, %208 ]
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %27) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %26) #10
  br label %350

332:                                              ; preds = %._crit_edge189
  %333 = getelementptr inbounds i8, ptr %1, i64 72
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(12) %0, ptr noundef nonnull align 8 dereferenceable(12) %333, i64 12, i1 false), !tbaa.struct !14
  %334 = getelementptr inbounds i8, ptr %1, i64 84
  %335 = getelementptr inbounds i8, ptr %0, i64 12
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %335, ptr noundef nonnull align 4 dereferenceable(12) %334, i64 12, i1 false), !tbaa.struct !14
  %336 = getelementptr inbounds i8, ptr %0, i64 24
  %337 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIN3glm3vecILi3EfLNS0_9qualifierE0EEESaIS3_EEaSERKS5_(ptr noundef nonnull align 8 dereferenceable(24) %336, ptr noundef nonnull align 8 dereferenceable(24) %6)
          to label %338 unwind label %347

338:                                              ; preds = %332
  %339 = getelementptr inbounds i8, ptr %0, i64 48
  %340 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IjSaIjEESaIS1_EEaSERKS3_(ptr noundef nonnull align 8 dereferenceable(24) %339, ptr noundef nonnull align 8 dereferenceable(24) %8)
          to label %341 unwind label %347

341:                                              ; preds = %338
  %342 = getelementptr inbounds i8, ptr %0, i64 96
  %343 = invoke noundef nonnull align 8 dereferenceable(56) ptr @_ZNSt13unordered_mapIjjSt4hashIjESt8equal_toIjESaISt4pairIKjjEEEaSERKS8_(ptr noundef nonnull align 8 dereferenceable(56) %342, ptr noundef nonnull align 8 dereferenceable(56) %9)
          to label %344 unwind label %347

344:                                              ; preds = %341
  invoke void @_ZN6Object16TriangulateFacesEv(ptr noundef nonnull align 8 dereferenceable(152) %0)
          to label %349 unwind label %347

345:                                              ; preds = %._crit_edge189
  %346 = landingpad { ptr, i32 }
          cleanup
  br label %350

347:                                              ; preds = %344, %341, %338, %332
  %348 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN6ObjectD1Ev(ptr noundef nonnull align 8 dereferenceable(152) %0) #10
  br label %350

349:                                              ; preds = %344
  call void @_ZNSt13unordered_mapIjjSt4hashIjESt8equal_toIjESaISt4pairIKjjEEED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %9) #10
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %9) #10
  call void @_ZNSt6vectorIS_IjSaIjEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #10
  call void @_ZNSt13unordered_mapIfS_IfS_IfjSt4hashIfESt8equal_toIfESaISt4pairIKfjEEES1_S3_SaIS4_IS5_S8_EEES1_S3_SaIS4_IS5_SB_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %7) #10
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %7) #10
  call void @_ZNSt6vectorIN3glm3vecILi3EfLNS0_9qualifierE0EEESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #10
  ret void

350:                                              ; preds = %347, %345, %331, %200, %82
  %.pn156.pn = phi { ptr, i32 } [ %.pn156, %82 ], [ %.pn152.pn.pn, %200 ], [ %.pn138.pn.pn, %331 ], [ %348, %347 ], [ %346, %345 ]
  call void @_ZNSt13unordered_mapIjjSt4hashIjESt8equal_toIjESaISt4pairIKjjEEED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %9) #10
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %9) #10
  call void @_ZNSt6vectorIS_IjSaIjEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #10
  call void @_ZNSt13unordered_mapIfS_IfS_IfjSt4hashIfESt8equal_toIfESaISt4pairIKfjEEES1_S3_SaIS4_IS5_S8_EEES1_S3_SaIS4_IS5_SB_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %7) #10
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %7) #10
  call void @_ZNSt6vectorIN3glm3vecILi3EfLNS0_9qualifierE0EEESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #10
  resume { ptr, i32 } %.pn156.pn
}

; 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 @_ZNSt6vectorIN3glm3vecILi3EfLNS0_9qualifierE0EEESaIS3_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #2 align 2

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IN3glm3vecILi3EfLNS0_9qualifierE0EEESaIS3_EESaIS5_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 @_ZNKSt6vectorIN3glm3vecILi3EfLNS0_9qualifierE0EEESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #2 align 2

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

declare noundef i32 @_ZN7Surface12getVertIndexEN3glm3vecILi3EfLNS0_9qualifierE0EEERSt6vectorIS3_SaIS3_EERSt13unordered_mapIfS8_IfS8_IfjSt4hashIfESt8equal_toIfESaISt4pairIKfjEEESA_SC_SaISD_ISE_SH_EEESA_SC_SaISD_ISE_SK_EEE(ptr noundef nonnull align 8 dereferenceable(152), <2 x float>, float, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(56)) local_unnamed_addr #3

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

declare i32 @__gxx_personality_v0(...)

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

; 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 uwtable
declare dso_local void @_ZNSt6vectorIS_IjSaIjEESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #5 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt13unordered_mapIjjSt4hashIjESt8equal_toIjESaISt4pairIKjjEEEixERS5_(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #5 align 2

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

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

; 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 #6 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 nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #7

declare { <2 x float>, float } @_ZN7Surface17ComputeFaceNormalE10FaceRecord(ptr noundef nonnull align 8 dereferenceable(152), ptr noundef) local_unnamed_addr #3

; 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: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN10FaceRecordC2ERKS_(ptr noundef nonnull align 8 dereferenceable(120), ptr noundef nonnull align 8 dereferenceable(120)) unnamed_addr #6 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 #8 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN10FaceRecordD2Ev(ptr noundef nonnull align 8 dereferenceable(120)) unnamed_addr #8 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 #8 align 2

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

declare { <2 x float>, float } @_ZN7Surface17ComputeFaceNormalEN3glm3vecILi3EfLNS0_9qualifierE0EEES3_S3_(ptr noundef nonnull align 8 dereferenceable(152), <2 x float>, float, <2 x float>, float, <2 x float>, float) local_unnamed_addr #3

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIS_IjSaIjEESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #5 align 2

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt13unordered_mapIjjSt4hashIjESt8equal_toIjESaISt4pairIKjjEEEixEOj(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #5 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN10EdgeRecordD2Ev(ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #8 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: 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: inlinehint mustprogress uwtable
declare dso_local void @_ZN12VertexRecordC2ERKS_(ptr noundef nonnull align 8 dereferenceable(64), ptr noundef nonnull align 8 dereferenceable(64)) unnamed_addr #6 align 2

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

; 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: 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: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIN3glm3vecILi3EfLNS0_9qualifierE0EEESaIS3_EE9push_backERKS3_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #5 align 2

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

declare void @_Z21projectPolygonToPlaneSt6vectorIN3glm3vecILi3EfLNS0_9qualifierE0EEESaIS3_EE(ptr dead_on_unwind writable sret(%"class.std::vector.99") align 8, ptr noundef) local_unnamed_addr #3

; 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 #5 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 nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorIN3glm3vecILi2EfLNS0_9qualifierE0EEESaIS3_EE4backEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #2 align 2

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

declare void @_Z20OrderPolygonVerticesSt6vectorIN3glm3vecILi2EfLNS0_9qualifierE0EEESaIS3_EES3_j(ptr dead_on_unwind writable sret(%"class.std::vector.80") align 8, ptr noundef, <2 x float>, i32 noundef) local_unnamed_addr #3

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

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

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

declare void @_ZN6ObjectC1Ev(ptr noundef nonnull align 8 dereferenceable(152)) unnamed_addr #3

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(56) ptr @_ZNSt13unordered_mapIjjSt4hashIjESt8equal_toIjESaISt4pairIKjjEEEaSERKS8_(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 8 dereferenceable(56)) local_unnamed_addr #5 align 2

declare void @_ZN6Object16TriangulateFacesEv(ptr noundef nonnull align 8 dereferenceable(152)) local_unnamed_addr #3

; Function Attrs: nounwind
declare void @_ZN6ObjectD1Ev(ptr noundef nonnull align 8 dereferenceable(152)) unnamed_addr #9

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZNSt13unordered_mapIfS_IfS_IfjSt4hashIfESt8equal_toIfESaISt4pairIKfjEEES1_S3_SaIS4_IS5_S8_EEES1_S3_SaIS4_IS5_SB_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(56)) unnamed_addr #8 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 = { "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 nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { 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 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 = { 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 #9 = { nounwind "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 }

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

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


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