; LLVM IR from atlantis13579/Riemann :: Src/Destruction (VoronoiTessellation)

; 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.Maths::TVector3" = type { float, float, float }
%"class.Maths::Frame3" = type { %"class.Maths::TVector3", %"class.Maths::TVector3", %"class.Maths::TVector3", %"class.Maths::TVector3" }
%"struct.Riemann::VertexInfo" = type <{ %"class.Maths::TVector3", %"class.Maths::TVector3", %"class.Maths::TVector3", %"class.Maths::TVector2", i8, i8, i8, i8 }>
%"class.Maths::TVector2" = type { float, float }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"class.Maths::TVector4" = type { float, float, float, float }
%"class.Maths::TIndex3" = type { i32, i32, i32 }
%"class.std::vector.20" = type { %"struct.std::_Vector_base.21" }
%"struct.std::_Vector_base.21" = type { %"struct.std::_Vector_base<Maths::TVector2<float>, std::allocator<Maths::TVector2<float>>>::_Vector_impl" }
%"struct.std::_Vector_base<Maths::TVector2<float>, std::allocator<Maths::TVector2<float>>>::_Vector_impl" = type { %"struct.std::_Vector_base<Maths::TVector2<float>, std::allocator<Maths::TVector2<float>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Maths::TVector2<float>, std::allocator<Maths::TVector2<float>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.Riemann::Delaunay" = type { %"class.std::vector.20", %"class.std::vector.81" }
%"class.std::vector.81" = type { %"struct.std::_Vector_base.82" }
%"struct.std::_Vector_base.82" = type { %"struct.std::_Vector_base<Riemann::DelaunayTriangle, std::allocator<Riemann::DelaunayTriangle>>::_Vector_impl" }
%"struct.std::_Vector_base<Riemann::DelaunayTriangle, std::allocator<Riemann::DelaunayTriangle>>::_Vector_impl" = type { %"struct.std::_Vector_base<Riemann::DelaunayTriangle, std::allocator<Riemann::DelaunayTriangle>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Riemann::DelaunayTriangle, std::allocator<Riemann::DelaunayTriangle>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.__gnu_cxx::__normal_iterator.86" = type { ptr }
%"class.Riemann::Voronoi3" = type { i64, ptr, %"class.std::vector.0", %"class.Maths::TAABB3", %"class.std::vector.5", %"class.std::vector.10", %"class.std::vector.15", %"class.std::vector.0" }
%"class.Maths::TAABB3" = type { %"class.Maths::TVector3", %"class.Maths::TVector3" }
%"class.std::vector.5" = type { %"struct.std::_Vector_base.6" }
%"struct.std::_Vector_base.6" = type { %"struct.std::_Vector_base<Riemann::Voronoi3::Plane, std::allocator<Riemann::Voronoi3::Plane>>::_Vector_impl" }
%"struct.std::_Vector_base<Riemann::Voronoi3::Plane, std::allocator<Riemann::Voronoi3::Plane>>::_Vector_impl" = type { %"struct.std::_Vector_base<Riemann::Voronoi3::Plane, std::allocator<Riemann::Voronoi3::Plane>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Riemann::Voronoi3::Plane, std::allocator<Riemann::Voronoi3::Plane>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.10" = type { %"struct.std::_Vector_base.11" }
%"struct.std::_Vector_base.11" = type { %"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.15" = type { %"struct.std::_Vector_base.16" }
%"struct.std::_Vector_base.16" = type { %"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::vector<int>, std::allocator<std::vector<int>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<Maths::TVector3<float>, std::allocator<Maths::TVector3<float>>>::_Vector_impl" }
%"struct.std::_Vector_base<Maths::TVector3<float>, std::allocator<Maths::TVector3<float>>>::_Vector_impl" = type { %"struct.std::_Vector_base<Maths::TVector3<float>, std::allocator<Maths::TVector3<float>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Maths::TVector3<float>, std::allocator<Maths::TVector3<float>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.Riemann::VoronoiMesh" = type <{ %"class.std::vector", i8, [3 x i8], i32, i32, [4 x i8] }>
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<Riemann::DynamicMesh *, std::allocator<Riemann::DynamicMesh *>>::_Vector_impl" }
%"struct.std::_Vector_base<Riemann::DynamicMesh *, std::allocator<Riemann::DynamicMesh *>>::_Vector_impl" = type { %"struct.std::_Vector_base<Riemann::DynamicMesh *, std::allocator<Riemann::DynamicMesh *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Riemann::DynamicMesh *, std::allocator<Riemann::DynamicMesh *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.std::pair" = type { i32, i32 }
%"struct.Riemann::DelaunayTriangle" = type { i32, i32, i32 }

@__const._ZN7Riemann11VoronoiMesh22BuildMesh_WithoutNoiseERKNS_8Voronoi3E.VertStart = external hidden unnamed_addr constant [2 x i32], align 4

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

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7Riemann11VoronoiMesh22BuildMesh_WithoutNoiseERKNS_8Voronoi3E(ptr noundef nonnull align 8 dereferenceable(36) %0, ptr noundef nonnull align 8 dereferenceable(160) %1) #2 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i64, align 8
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca [2 x ptr], align 16
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca ptr, align 8
  %12 = alloca %"class.Maths::TVector3", align 4
  %13 = alloca %"class.Maths::TVector3", align 4
  %14 = alloca %"class.Maths::Frame3", align 4
  %15 = alloca %"struct.Riemann::VertexInfo", align 4
  %16 = alloca [2 x i32], align 4
  %17 = alloca i32, align 4
  %18 = alloca %"class.Maths::TVector2", align 4
  %19 = alloca ptr, align 8
  %20 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %21 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %22 = alloca i32, align 4
  %23 = alloca %"class.Maths::TVector3", align 4
  %24 = alloca %"class.Maths::TVector2", align 4
  %25 = alloca ptr, align 8
  %26 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %27 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %28 = alloca i32, align 4
  %29 = alloca %"class.Maths::TVector3", align 4
  %30 = alloca %"class.Maths::TVector2", align 4
  %31 = alloca %"class.Maths::TVector2", align 4
  %32 = alloca i32, align 4
  %33 = alloca %"class.Maths::TVector4", align 4
  %34 = alloca %"class.Maths::TVector2", align 4
  %35 = alloca i32, align 4
  %36 = alloca i32, align 4
  %37 = alloca i32, align 4
  %38 = alloca i32, align 4
  %39 = alloca i32, align 4
  %40 = alloca i32, align 4
  %41 = alloca %"class.Maths::TIndex3", align 4
  %42 = alloca i32, align 4
  %43 = alloca %"class.std::vector.20", align 8
  %44 = alloca i32, align 4
  %45 = alloca %"class.Maths::TVector2", align 4
  %46 = alloca ptr, align 8
  %47 = alloca i32, align 4
  %48 = alloca %"class.Riemann::Delaunay", align 8
  %49 = alloca i32, align 4
  %50 = alloca i32, align 4
  %51 = alloca ptr, align 8
  %52 = alloca %"class.__gnu_cxx::__normal_iterator.86", align 8
  %53 = alloca %"class.__gnu_cxx::__normal_iterator.86", align 8
  %54 = alloca ptr, align 8
  %55 = alloca %"class.Maths::TIndex3", align 4
  %56 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %57 = load ptr, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #8
  store i64 0, ptr %5, align 8, !tbaa !9
  br label %58

58:                                               ; preds = %419, %2
  %59 = load i64, ptr %5, align 8, !tbaa !9
  %60 = load ptr, ptr %4, align 8, !tbaa !5
  %61 = getelementptr inbounds %"class.Riemann::Voronoi3", ptr %60, i32 0, i32 5
  %62 = call noundef i64 @_ZNKSt6vectorISt4pairIiiESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %61) #8
  %63 = icmp ult i64 %59, %62
  br i1 %63, label %65, label %64

64:                                               ; preds = %58
  store i32 2, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #8
  br label %422

65:                                               ; preds = %58
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #8
  %66 = load ptr, ptr %4, align 8, !tbaa !5
  %67 = getelementptr inbounds %"class.Riemann::Voronoi3", ptr %66, i32 0, i32 5
  %68 = load i64, ptr %5, align 8, !tbaa !9
  %69 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNKSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %67, i64 noundef %68) #8
  store ptr %69, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %8) #8
  call void @llvm.memset.p0.i64(ptr align 16 %8, i8 0, i64 16, i1 false)
  %70 = getelementptr inbounds %"class.Riemann::VoronoiMesh", ptr %57, i32 0, i32 0
  %71 = load ptr, ptr %7, align 8, !tbaa !5
  %72 = getelementptr inbounds %"struct.std::pair", ptr %71, i32 0, i32 0
  %73 = load i32, ptr %72, align 4, !tbaa !11
  %74 = sext i32 %73 to i64
  %75 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPN7Riemann11DynamicMeshESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %70, i64 noundef %74) #8
  %76 = load ptr, ptr %75, align 8, !tbaa !5
  %77 = getelementptr inbounds [2 x ptr], ptr %8, i64 0, i64 0
  store ptr %76, ptr %77, align 16, !tbaa !5
  %78 = getelementptr inbounds [2 x ptr], ptr %8, i64 0, i64 1
  store ptr null, ptr %78, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #8
  %79 = load ptr, ptr %7, align 8, !tbaa !5
  %80 = getelementptr inbounds %"struct.std::pair", ptr %79, i32 0, i32 1
  %81 = load i32, ptr %80, align 4, !tbaa !14
  %82 = icmp slt i32 %81, 0
  br i1 %82, label %83, label %86

83:                                               ; preds = %65
  %84 = getelementptr inbounds %"class.Riemann::VoronoiMesh", ptr %57, i32 0, i32 3
  %85 = load i32, ptr %84, align 4, !tbaa !15
  br label %90

86:                                               ; preds = %65
  %87 = load ptr, ptr %7, align 8, !tbaa !5
  %88 = getelementptr inbounds %"struct.std::pair", ptr %87, i32 0, i32 1
  %89 = load i32, ptr %88, align 4, !tbaa !14
  br label %90

90:                                               ; preds = %86, %83
  %91 = phi i32 [ %85, %83 ], [ %89, %86 ]
  store i32 %91, ptr %9, align 4, !tbaa !22
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #8
  %92 = load i32, ptr %9, align 4, !tbaa !22
  %93 = icmp slt i32 %92, 0
  %94 = zext i1 %93 to i64
  %95 = select i1 %93, i32 1, i32 2
  store i32 %95, ptr %10, align 4, !tbaa !22
  %96 = load i32, ptr %10, align 4, !tbaa !22
  %97 = icmp eq i32 %96, 2
  br i1 %97, label %98, label %105

98:                                               ; preds = %90
  %99 = getelementptr inbounds %"class.Riemann::VoronoiMesh", ptr %57, i32 0, i32 0
  %100 = load i32, ptr %9, align 4, !tbaa !22
  %101 = sext i32 %100 to i64
  %102 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPN7Riemann11DynamicMeshESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %99, i64 noundef %101) #8
  %103 = load ptr, ptr %102, align 8, !tbaa !5
  %104 = getelementptr inbounds [2 x ptr], ptr %8, i64 0, i64 1
  store ptr %103, ptr %104, align 8, !tbaa !5
  br label %105

105:                                              ; preds = %98, %90
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #8
  %106 = load ptr, ptr %4, align 8, !tbaa !5
  %107 = getelementptr inbounds %"class.Riemann::Voronoi3", ptr %106, i32 0, i32 6
  %108 = load i64, ptr %5, align 8, !tbaa !9
  %109 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNKSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %107, i64 noundef %108) #8
  store ptr %109, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 12, ptr %12) #8
  %110 = load ptr, ptr %4, align 8, !tbaa !5
  %111 = getelementptr inbounds %"class.Riemann::Voronoi3", ptr %110, i32 0, i32 4
  %112 = load i64, ptr %5, align 8, !tbaa !9
  %113 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZNKSt6vectorIN7Riemann8Voronoi35PlaneESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %111, i64 noundef %112) #8
  call void @_ZNK7Riemann8Voronoi35Plane9GetOriginEv(ptr dead_on_unwind writable sret(%"class.Maths::TVector3") align 4 %12, ptr noundef nonnull align 4 dereferenceable(16) %113)
  call void @llvm.lifetime.start.p0(i64 12, ptr %13) #8
  %114 = load ptr, ptr %4, align 8, !tbaa !5
  %115 = getelementptr inbounds %"class.Riemann::Voronoi3", ptr %114, i32 0, i32 4
  %116 = load i64, ptr %5, align 8, !tbaa !9
  %117 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZNKSt6vectorIN7Riemann8Voronoi35PlaneESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %115, i64 noundef %116) #8
  call void @_ZNK7Riemann8Voronoi35Plane9GetNormalEv(ptr dead_on_unwind writable sret(%"class.Maths::TVector3") align 4 %13, ptr noundef nonnull align 4 dereferenceable(16) %117)
  call void @llvm.lifetime.start.p0(i64 48, ptr %14) #8
  call void @_ZN5Maths6Frame3C2ERKNS_8TVector3IfEES4_b(ptr noundef nonnull align 4 dereferenceable(48) %14, ptr noundef nonnull align 4 dereferenceable(12) %12, ptr noundef nonnull align 4 dereferenceable(12) %13, i1 noundef zeroext false)
  call void @llvm.lifetime.start.p0(i64 48, ptr %15) #8
  call void @_ZN7Riemann10VertexInfoC2Ev(ptr noundef nonnull align 4 dereferenceable(47) %15)
  %118 = getelementptr inbounds %"struct.Riemann::VertexInfo", ptr %15, i32 0, i32 5
  store i8 1, ptr %118, align 1, !tbaa !23
  %119 = getelementptr inbounds %"struct.Riemann::VertexInfo", ptr %15, i32 0, i32 4
  store i8 1, ptr %119, align 4, !tbaa !28
  %120 = getelementptr inbounds %"struct.Riemann::VertexInfo", ptr %15, i32 0, i32 6
  store i8 1, ptr %120, align 2, !tbaa !29
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %16, ptr align 4 @__const._ZN7Riemann11VoronoiMesh22BuildMesh_WithoutNoiseERKNS_8Voronoi3E.VertStart, i64 8, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #8
  store i32 0, ptr %17, align 4, !tbaa !22
  br label %121

121:                                              ; preds = %225, %105
  %122 = load i32, ptr %17, align 4, !tbaa !22
  %123 = load i32, ptr %10, align 4, !tbaa !22
  %124 = icmp slt i32 %122, %123
  br i1 %124, label %126, label %125

125:                                              ; preds = %121
  store i32 5, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #8
  br label %228

126:                                              ; preds = %121
  %127 = getelementptr inbounds %"struct.Riemann::VertexInfo", ptr %15, i32 0, i32 1
  %128 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN5Maths8TVector3IfEaSERKS1_(ptr noundef nonnull align 4 dereferenceable(12) %127, ptr noundef nonnull align 4 dereferenceable(12) %13)
  %129 = load i32, ptr %17, align 4, !tbaa !22
  %130 = icmp eq i32 %129, 1
  br i1 %130, label %131, label %138

131:                                              ; preds = %126
  %132 = load i32, ptr %9, align 4, !tbaa !22
  %133 = getelementptr inbounds %"class.Riemann::VoronoiMesh", ptr %57, i32 0, i32 3
  %134 = load i32, ptr %133, align 4, !tbaa !15
  %135 = icmp ne i32 %132, %134
  br i1 %135, label %136, label %138

136:                                              ; preds = %131
  %137 = getelementptr inbounds %"struct.Riemann::VertexInfo", ptr %15, i32 0, i32 1
  call void @_ZN5Maths8TVector3IfEmLEf(ptr noundef nonnull align 4 dereferenceable(12) %137, float noundef -1.000000e+00)
  br label %138

138:                                              ; preds = %136, %131, %126
  %139 = load i32, ptr %17, align 4, !tbaa !22
  %140 = sext i32 %139 to i64
  %141 = getelementptr inbounds [2 x ptr], ptr %8, i64 0, i64 %140
  %142 = load ptr, ptr %141, align 8, !tbaa !5
  %143 = call noundef i32 @_ZNK7Riemann11DynamicMesh14GetVertexCountEv(ptr noundef nonnull align 8 dereferenceable(452) %142)
  %144 = load i32, ptr %17, align 4, !tbaa !22
  %145 = sext i32 %144 to i64
  %146 = getelementptr inbounds [2 x i32], ptr %16, i64 0, i64 %145
  store i32 %143, ptr %146, align 4, !tbaa !22
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #8
  call void @_ZN5Maths8TVector2IfEC2Eff(ptr noundef nonnull align 4 dereferenceable(8) %18, float noundef 0x47EFFFFFE0000000, float noundef 0x47EFFFFFE0000000)
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #8
  %147 = load ptr, ptr %11, align 8, !tbaa !5
  store ptr %147, ptr %19, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #8
  %148 = load ptr, ptr %19, align 8, !tbaa !5
  %149 = call ptr @_ZNKSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %148) #8
  %150 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %20, i32 0, i32 0
  store ptr %149, ptr %150, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #8
  %151 = load ptr, ptr %19, align 8, !tbaa !5
  %152 = call ptr @_ZNKSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %151) #8
  %153 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %21, i32 0, i32 0
  store ptr %152, ptr %153, align 8
  br label %154

154:                                              ; preds = %175, %138
  %155 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESB_(ptr noundef nonnull align 8 dereferenceable(8) %20, ptr noundef nonnull align 8 dereferenceable(8) %21) #8
  br i1 %155, label %157, label %156

156:                                              ; preds = %154
  store i32 8, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #8
  br label %177

157:                                              ; preds = %154
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #8
  %158 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %20) #8
  %159 = load i32, ptr %158, align 4, !tbaa !22
  store i32 %159, ptr %22, align 4, !tbaa !22
  call void @llvm.lifetime.start.p0(i64 12, ptr %23) #8
  %160 = load ptr, ptr %4, align 8, !tbaa !5
  %161 = getelementptr inbounds %"class.Riemann::Voronoi3", ptr %160, i32 0, i32 7
  %162 = load i32, ptr %22, align 4, !tbaa !22
  %163 = sext i32 %162 to i64
  %164 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNKSt6vectorIN5Maths8TVector3IfEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %161, i64 noundef %163) #8
  call void @_ZN5Maths8TVector3IfEC2ERKS1_(ptr noundef nonnull align 4 dereferenceable(12) %23, ptr noundef nonnull align 4 dereferenceable(12) %164)
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #8
  call void @_ZNK5Maths6Frame39ProjectXZERKNS_8TVector3IfEE(ptr dead_on_unwind writable sret(%"class.Maths::TVector2") align 4 %24, ptr noundef nonnull align 4 dereferenceable(48) %14, ptr noundef nonnull align 4 dereferenceable(12) %23)
  %165 = getelementptr inbounds %"class.Maths::TVector2", ptr %24, i32 0, i32 0
  %166 = getelementptr inbounds %"class.Maths::TVector2", ptr %18, i32 0, i32 0
  %167 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %165, ptr noundef nonnull align 4 dereferenceable(4) %166)
  %168 = load float, ptr %167, align 4, !tbaa !30
  %169 = getelementptr inbounds %"class.Maths::TVector2", ptr %18, i32 0, i32 0
  store float %168, ptr %169, align 4, !tbaa !31
  %170 = getelementptr inbounds %"class.Maths::TVector2", ptr %24, i32 0, i32 1
  %171 = getelementptr inbounds %"class.Maths::TVector2", ptr %18, i32 0, i32 1
  %172 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %170, ptr noundef nonnull align 4 dereferenceable(4) %171)
  %173 = load float, ptr %172, align 4, !tbaa !30
  %174 = getelementptr inbounds %"class.Maths::TVector2", ptr %18, i32 0, i32 1
  store float %173, ptr %174, align 4, !tbaa !32
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr %23) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #8
  br label %175

175:                                              ; preds = %157
  %176 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPKiSt6vectorIiSaIiEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %20) #8
  br label %154

177:                                              ; preds = %156
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #8
  %178 = load ptr, ptr %11, align 8, !tbaa !5
  store ptr %178, ptr %25, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #8
  %179 = load ptr, ptr %25, align 8, !tbaa !5
  %180 = call ptr @_ZNKSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %179) #8
  %181 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %26, i32 0, i32 0
  store ptr %180, ptr %181, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #8
  %182 = load ptr, ptr %25, align 8, !tbaa !5
  %183 = call ptr @_ZNKSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %182) #8
  %184 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %27, i32 0, i32 0
  store ptr %183, ptr %184, align 8
  br label %185

185:                                              ; preds = %222, %177
  %186 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESB_(ptr noundef nonnull align 8 dereferenceable(8) %26, ptr noundef nonnull align 8 dereferenceable(8) %27) #8
  br i1 %186, label %188, label %187

187:                                              ; preds = %185
  store i32 10, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #8
  br label %224

188:                                              ; preds = %185
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #8
  %189 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %26) #8
  %190 = load i32, ptr %189, align 4, !tbaa !22
  store i32 %190, ptr %28, align 4, !tbaa !22
  %191 = load ptr, ptr %4, align 8, !tbaa !5
  %192 = getelementptr inbounds %"class.Riemann::Voronoi3", ptr %191, i32 0, i32 7
  %193 = load i32, ptr %28, align 4, !tbaa !22
  %194 = sext i32 %193 to i64
  %195 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNKSt6vectorIN5Maths8TVector3IfEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %192, i64 noundef %194) #8
  %196 = getelementptr inbounds %"struct.Riemann::VertexInfo", ptr %15, i32 0, i32 0
  %197 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN5Maths8TVector3IfEaSERKS1_(ptr noundef nonnull align 4 dereferenceable(12) %196, ptr noundef nonnull align 4 dereferenceable(12) %195)
  call void @llvm.lifetime.start.p0(i64 12, ptr %29) #8
  call void @_ZN5Maths8TVector3IfE6InfMaxEv(ptr dead_on_unwind writable sret(%"class.Maths::TVector3") align 4 %29)
  %198 = getelementptr inbounds %"struct.Riemann::VertexInfo", ptr %15, i32 0, i32 2
  %199 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN5Maths8TVector3IfEaSERKS1_(ptr noundef nonnull align 4 dereferenceable(12) %198, ptr noundef nonnull align 4 dereferenceable(12) %29)
  call void @llvm.lifetime.end.p0(i64 12, ptr %29) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #8
  %200 = getelementptr inbounds %"struct.Riemann::VertexInfo", ptr %15, i32 0, i32 0
  call void @_ZNK5Maths6Frame39ProjectXZERKNS_8TVector3IfEE(ptr dead_on_unwind writable sret(%"class.Maths::TVector2") align 4 %31, ptr noundef nonnull align 4 dereferenceable(48) %14, ptr noundef nonnull align 4 dereferenceable(12) %200)
  call void @_ZNK5Maths8TVector2IfEmiERKS1_(ptr dead_on_unwind writable sret(%"class.Maths::TVector2") align 4 %30, ptr noundef nonnull align 4 dereferenceable(8) %31, ptr noundef nonnull align 4 dereferenceable(8) %18)
  %201 = getelementptr inbounds %"struct.Riemann::VertexInfo", ptr %15, i32 0, i32 3
  %202 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZN5Maths8TVector2IfEaSERKS1_(ptr noundef nonnull align 4 dereferenceable(8) %201, ptr noundef nonnull align 4 dereferenceable(8) %30)
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #8
  %203 = load i32, ptr %17, align 4, !tbaa !22
  %204 = sext i32 %203 to i64
  %205 = getelementptr inbounds [2 x ptr], ptr %8, i64 0, i64 %204
  %206 = load ptr, ptr %205, align 8, !tbaa !5
  %207 = call noundef i32 @_ZN7Riemann11DynamicMesh12AppendVertexERKNS_10VertexInfoE(ptr noundef nonnull align 8 dereferenceable(452) %206, ptr noundef nonnull align 4 dereferenceable(47) %15)
  store i32 %207, ptr %32, align 4, !tbaa !22
  %208 = load i32, ptr %17, align 4, !tbaa !22
  %209 = sext i32 %208 to i64
  %210 = getelementptr inbounds [2 x ptr], ptr %8, i64 0, i64 %209
  %211 = load ptr, ptr %210, align 8, !tbaa !5
  %212 = load i32, ptr %32, align 4, !tbaa !22
  %213 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZN5Maths8TVector4IfE4ZeroEv()
  call void @_ZN5Maths8TVector4IfEC2ERKS1_(ptr noundef nonnull align 4 dereferenceable(16) %33, ptr noundef nonnull align 4 dereferenceable(16) %213)
  call void @_ZN7Riemann23DynamicMeshAttributeSet14SetVertexColorEPNS_11DynamicMeshEiN5Maths8TVector4IfEE(ptr noundef %211, i32 noundef %212, ptr noundef %33)
  %214 = load i32, ptr %17, align 4, !tbaa !22
  %215 = sext i32 %214 to i64
  %216 = getelementptr inbounds [2 x ptr], ptr %8, i64 0, i64 %215
  %217 = load ptr, ptr %216, align 8, !tbaa !5
  %218 = load i32, ptr %32, align 4, !tbaa !22
  %219 = getelementptr inbounds %"struct.Riemann::VertexInfo", ptr %15, i32 0, i32 3
  call void @_ZN5Maths8TVector2IfEC2ERKS1_(ptr noundef nonnull align 4 dereferenceable(8) %34, ptr noundef nonnull align 4 dereferenceable(8) %219)
  %220 = getelementptr inbounds %"class.Riemann::VoronoiMesh", ptr %57, i32 0, i32 4
  %221 = load i32, ptr %220, align 8, !tbaa !33
  call void @_ZN7Riemann23DynamicMeshAttributeSet8SetAllUVEPNS_11DynamicMeshEiN5Maths8TVector2IfEEi(ptr noundef %217, i32 noundef %218, ptr noundef %34, i32 noundef %221)
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #8
  br label %222

222:                                              ; preds = %188
  %223 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPKiSt6vectorIiSaIiEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %26) #8
  br label %185

224:                                              ; preds = %187
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #8
  br label %225

225:                                              ; preds = %224
  %226 = load i32, ptr %17, align 4, !tbaa !22
  %227 = add nsw i32 %226, 1
  store i32 %227, ptr %17, align 4, !tbaa !22
  br label %121, !llvm.loop !34

228:                                              ; preds = %125
  call void @llvm.lifetime.start.p0(i64 4, ptr %35) #8
  %229 = load i64, ptr %5, align 8, !tbaa !9
  %230 = trunc i64 %229 to i32
  %231 = call noundef i32 @_ZN7RiemannL21EncodePlaneToMaterialEi(i32 noundef %230)
  store i32 %231, ptr %35, align 4, !tbaa !22
  %232 = getelementptr inbounds %"class.Riemann::VoronoiMesh", ptr %57, i32 0, i32 1
  %233 = load i8, ptr %232, align 8, !tbaa !36, !range !37, !noundef !38
  %234 = trunc i8 %233 to i1
  br i1 %234, label %235, label %299

235:                                              ; preds = %228
  call void @llvm.lifetime.start.p0(i64 4, ptr %36) #8
  store i32 0, ptr %36, align 4, !tbaa !22
  call void @llvm.lifetime.start.p0(i64 4, ptr %37) #8
  store i32 1, ptr %37, align 4, !tbaa !22
  call void @llvm.lifetime.start.p0(i64 4, ptr %38) #8
  store i32 2, ptr %38, align 4, !tbaa !22
  br label %236

236:                                              ; preds = %295, %235
  %237 = load i32, ptr %38, align 4, !tbaa !22
  %238 = load ptr, ptr %11, align 8, !tbaa !5
  %239 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %238) #8
  %240 = trunc i64 %239 to i32
  %241 = icmp slt i32 %237, %240
  br i1 %241, label %243, label %242

242:                                              ; preds = %236
  store i32 12, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %37) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #8
  br label %298

243:                                              ; preds = %236
  call void @llvm.lifetime.start.p0(i64 4, ptr %39) #8
  store i32 0, ptr %39, align 4, !tbaa !22
  br label %244

244:                                              ; preds = %291, %243
  %245 = load i32, ptr %39, align 4, !tbaa !22
  %246 = load i32, ptr %10, align 4, !tbaa !22
  %247 = icmp slt i32 %245, %246
  br i1 %247, label %249, label %248

248:                                              ; preds = %244
  store i32 15, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %39) #8
  br label %294

249:                                              ; preds = %244
  call void @llvm.lifetime.start.p0(i64 4, ptr %40) #8
  %250 = load i32, ptr %39, align 4, !tbaa !22
  %251 = sext i32 %250 to i64
  %252 = getelementptr inbounds [2 x i32], ptr %16, i64 0, i64 %251
  %253 = load i32, ptr %252, align 4, !tbaa !22
  store i32 %253, ptr %40, align 4, !tbaa !22
  call void @llvm.lifetime.start.p0(i64 12, ptr %41) #8
  %254 = load i32, ptr %36, align 4, !tbaa !22
  %255 = load i32, ptr %40, align 4, !tbaa !22
  %256 = add nsw i32 %254, %255
  %257 = load i32, ptr %37, align 4, !tbaa !22
  %258 = load i32, ptr %40, align 4, !tbaa !22
  %259 = add nsw i32 %257, %258
  %260 = load i32, ptr %38, align 4, !tbaa !22
  %261 = load i32, ptr %40, align 4, !tbaa !22
  %262 = add nsw i32 %260, %261
  call void @_ZN5Maths7TIndex3IiEC2Eiii(ptr noundef nonnull align 4 dereferenceable(12) %41, i32 noundef %256, i32 noundef %259, i32 noundef %262)
  %263 = load i32, ptr %39, align 4, !tbaa !22
  %264 = icmp eq i32 %263, 1
  br i1 %264, label %265, label %273

265:                                              ; preds = %249
  %266 = load i32, ptr %9, align 4, !tbaa !22
  %267 = getelementptr inbounds %"class.Riemann::VoronoiMesh", ptr %57, i32 0, i32 3
  %268 = load i32, ptr %267, align 4, !tbaa !15
  %269 = icmp ne i32 %266, %268
  br i1 %269, label %270, label %273

270:                                              ; preds = %265
  %271 = getelementptr inbounds %"class.Maths::TIndex3", ptr %41, i32 0, i32 1
  %272 = getelementptr inbounds %"class.Maths::TIndex3", ptr %41, i32 0, i32 2
  call void @_ZSt4swapIiENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 4 dereferenceable(4) %271, ptr noundef nonnull align 4 dereferenceable(4) %272) #8
  br label %273

273:                                              ; preds = %270, %265, %249
  call void @llvm.lifetime.start.p0(i64 4, ptr %42) #8
  %274 = load i32, ptr %39, align 4, !tbaa !22
  %275 = sext i32 %274 to i64
  %276 = getelementptr inbounds [2 x ptr], ptr %8, i64 0, i64 %275
  %277 = load ptr, ptr %276, align 8, !tbaa !5
  %278 = call noundef i32 @_ZN7Riemann11DynamicMesh14AppendTriangleERKN5Maths7TIndex3IiEEi(ptr noundef nonnull align 8 dereferenceable(452) %277, ptr noundef nonnull align 4 dereferenceable(12) %41, i32 noundef 0)
  store i32 %278, ptr %42, align 4, !tbaa !22
  %279 = load i32, ptr %42, align 4, !tbaa !22
  %280 = icmp sgt i32 %279, -1
  br i1 %280, label %281, label %290

281:                                              ; preds = %273
  %282 = load i32, ptr %39, align 4, !tbaa !22
  %283 = sext i32 %282 to i64
  %284 = getelementptr inbounds [2 x ptr], ptr %8, i64 0, i64 %283
  %285 = load ptr, ptr %284, align 8, !tbaa !5
  %286 = call noundef ptr @_ZN7Riemann11DynamicMesh10AttributesEv(ptr noundef nonnull align 8 dereferenceable(452) %285)
  %287 = call noundef ptr @_ZN7Riemann23DynamicMeshAttributeSet13GetMaterialIDEv(ptr noundef nonnull align 8 dereferenceable(168) %286)
  %288 = load i32, ptr %42, align 4, !tbaa !22
  %289 = load i32, ptr %35, align 4, !tbaa !22
  call void @_ZN7Riemann35TDynamicMeshScalarTriangleAttributeIiE11SetNewValueEii(ptr noundef nonnull align 8 dereferenceable(72) %287, i32 noundef %288, i32 noundef %289)
  br label %290

290:                                              ; preds = %281, %273
  call void @llvm.lifetime.end.p0(i64 4, ptr %42) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr %41) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %40) #8
  br label %291

291:                                              ; preds = %290
  %292 = load i32, ptr %39, align 4, !tbaa !22
  %293 = add nsw i32 %292, 1
  store i32 %293, ptr %39, align 4, !tbaa !22
  br label %244, !llvm.loop !39

294:                                              ; preds = %248
  br label %295

295:                                              ; preds = %294
  %296 = load i32, ptr %38, align 4, !tbaa !22
  %297 = add nsw i32 %296, 1
  store i32 %297, ptr %38, align 4, !tbaa !22
  store i32 %296, ptr %37, align 4, !tbaa !22
  br label %236, !llvm.loop !40

298:                                              ; preds = %242
  br label %418

299:                                              ; preds = %228
  call void @llvm.lifetime.start.p0(i64 24, ptr %43) #8
  call void @_ZNSt6vectorIN5Maths8TVector2IfEESaIS2_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %43) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %44) #8
  store i32 0, ptr %44, align 4, !tbaa !22
  br label %300

300:                                              ; preds = %316, %299
  %301 = load i32, ptr %44, align 4, !tbaa !22
  %302 = sext i32 %301 to i64
  %303 = load ptr, ptr %11, align 8, !tbaa !5
  %304 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %303) #8
  %305 = icmp ult i64 %302, %304
  br i1 %305, label %307, label %306

306:                                              ; preds = %300
  store i32 18, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %44) #8
  br label %323

307:                                              ; preds = %300
  call void @llvm.lifetime.start.p0(i64 8, ptr %45) #8
  %308 = getelementptr inbounds [2 x ptr], ptr %8, i64 0, i64 0
  %309 = load ptr, ptr %308, align 16, !tbaa !5
  %310 = getelementptr inbounds [2 x i32], ptr %16, i64 0, i64 0
  %311 = load i32, ptr %310, align 4, !tbaa !22
  %312 = load i32, ptr %44, align 4, !tbaa !22
  %313 = add nsw i32 %311, %312
  invoke void @_ZNK7Riemann11DynamicMesh11GetVertexUVEi(ptr dead_on_unwind writable sret(%"class.Maths::TVector2") align 4 %45, ptr noundef nonnull align 8 dereferenceable(452) %309, i32 noundef %313)
          to label %314 unwind label %319

314:                                              ; preds = %307
  invoke void @_ZNSt6vectorIN5Maths8TVector2IfEESaIS2_EE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %43, ptr noundef nonnull align 4 dereferenceable(8) %45)
          to label %315 unwind label %319

315:                                              ; preds = %314
  call void @llvm.lifetime.end.p0(i64 8, ptr %45) #8
  br label %316

316:                                              ; preds = %315
  %317 = load i32, ptr %44, align 4, !tbaa !22
  %318 = add nsw i32 %317, 1
  store i32 %318, ptr %44, align 4, !tbaa !22
  br label %300, !llvm.loop !41

319:                                              ; preds = %314, %307
  %320 = landingpad { ptr, i32 }
          cleanup
  %321 = extractvalue { ptr, i32 } %320, 0
  store ptr %321, ptr %46, align 8
  %322 = extractvalue { ptr, i32 } %320, 1
  store i32 %322, ptr %47, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %45) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %44) #8
  br label %417

323:                                              ; preds = %306
  call void @llvm.lifetime.start.p0(i64 48, ptr %48) #8
  call void @_ZN7Riemann8DelaunayC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %48) #8
  %324 = invoke noundef zeroext i1 @_ZN7Riemann8Delaunay11TriangulateERKSt6vectorIN5Maths8TVector2IfEESaIS4_EE(ptr noundef nonnull align 8 dereferenceable(48) %48, ptr noundef nonnull align 8 dereferenceable(24) %43)
          to label %325 unwind label %331

325:                                              ; preds = %323
  call void @llvm.lifetime.start.p0(i64 4, ptr %49) #8
  store i32 0, ptr %49, align 4, !tbaa !22
  br label %326

326:                                              ; preds = %412, %325
  %327 = load i32, ptr %49, align 4, !tbaa !22
  %328 = load i32, ptr %10, align 4, !tbaa !22
  %329 = icmp slt i32 %327, %328
  br i1 %329, label %335, label %330

330:                                              ; preds = %326
  store i32 21, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %49) #8
  br label %415

331:                                              ; preds = %323
  %332 = landingpad { ptr, i32 }
          cleanup
  %333 = extractvalue { ptr, i32 } %332, 0
  store ptr %333, ptr %46, align 8
  %334 = extractvalue { ptr, i32 } %332, 1
  store i32 %334, ptr %47, align 4
  br label %416

335:                                              ; preds = %326
  call void @llvm.lifetime.start.p0(i64 4, ptr %50) #8
  %336 = load i32, ptr %49, align 4, !tbaa !22
  %337 = sext i32 %336 to i64
  %338 = getelementptr inbounds [2 x i32], ptr %16, i64 0, i64 %337
  %339 = load i32, ptr %338, align 4, !tbaa !22
  store i32 %339, ptr %50, align 4, !tbaa !22
  call void @llvm.lifetime.start.p0(i64 8, ptr %51) #8
  %340 = getelementptr inbounds %"class.Riemann::Delaunay", ptr %48, i32 0, i32 1
  store ptr %340, ptr %51, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %52) #8
  %341 = load ptr, ptr %51, align 8, !tbaa !5
  %342 = call ptr @_ZNSt6vectorIN7Riemann16DelaunayTriangleESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %341) #8
  %343 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.86", ptr %52, i32 0, i32 0
  store ptr %342, ptr %343, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %53) #8
  %344 = load ptr, ptr %51, align 8, !tbaa !5
  %345 = call ptr @_ZNSt6vectorIN7Riemann16DelaunayTriangleESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %344) #8
  %346 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.86", ptr %53, i32 0, i32 0
  store ptr %345, ptr %346, align 8
  br label %347

347:                                              ; preds = %408, %335
  %348 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPN7Riemann16DelaunayTriangleESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %52, ptr noundef nonnull align 8 dereferenceable(8) %53) #8
  br i1 %348, label %350, label %349

349:                                              ; preds = %347
  store i32 24, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %53) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %52) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %51) #8
  br label %411

350:                                              ; preds = %347
  call void @llvm.lifetime.start.p0(i64 8, ptr %54) #8
  %351 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPN7Riemann16DelaunayTriangleESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %52) #8
  store ptr %351, ptr %54, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 12, ptr %55) #8
  %352 = load ptr, ptr %54, align 8, !tbaa !5
  %353 = getelementptr inbounds %"struct.Riemann::DelaunayTriangle", ptr %352, i32 0, i32 0
  %354 = load i32, ptr %353, align 4, !tbaa !42
  %355 = load i32, ptr %50, align 4, !tbaa !22
  %356 = add nsw i32 %354, %355
  %357 = load ptr, ptr %54, align 8, !tbaa !5
  %358 = getelementptr inbounds %"struct.Riemann::DelaunayTriangle", ptr %357, i32 0, i32 1
  %359 = load i32, ptr %358, align 4, !tbaa !44
  %360 = load i32, ptr %50, align 4, !tbaa !22
  %361 = add nsw i32 %359, %360
  %362 = load ptr, ptr %54, align 8, !tbaa !5
  %363 = getelementptr inbounds %"struct.Riemann::DelaunayTriangle", ptr %362, i32 0, i32 2
  %364 = load i32, ptr %363, align 4, !tbaa !45
  %365 = load i32, ptr %50, align 4, !tbaa !22
  %366 = add nsw i32 %364, %365
  invoke void @_ZN5Maths7TIndex3IiEC2Eiii(ptr noundef nonnull align 4 dereferenceable(12) %55, i32 noundef %356, i32 noundef %361, i32 noundef %366)
          to label %367 unwind label %378

367:                                              ; preds = %350
  %368 = load i32, ptr %49, align 4, !tbaa !22
  %369 = icmp eq i32 %368, 1
  br i1 %369, label %370, label %382

370:                                              ; preds = %367
  %371 = load i32, ptr %9, align 4, !tbaa !22
  %372 = getelementptr inbounds %"class.Riemann::VoronoiMesh", ptr %57, i32 0, i32 3
  %373 = load i32, ptr %372, align 4, !tbaa !15
  %374 = icmp ne i32 %371, %373
  br i1 %374, label %375, label %382

375:                                              ; preds = %370
  %376 = getelementptr inbounds %"class.Maths::TIndex3", ptr %55, i32 0, i32 1
  %377 = getelementptr inbounds %"class.Maths::TIndex3", ptr %55, i32 0, i32 2
  call void @_ZSt4swapIiENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 4 dereferenceable(4) %376, ptr noundef nonnull align 4 dereferenceable(4) %377) #8
  br label %382

378:                                              ; preds = %350
  %379 = landingpad { ptr, i32 }
          cleanup
  %380 = extractvalue { ptr, i32 } %379, 0
  store ptr %380, ptr %46, align 8
  %381 = extractvalue { ptr, i32 } %379, 1
  store i32 %381, ptr %47, align 4
  br label %410

382:                                              ; preds = %375, %370, %367
  call void @llvm.lifetime.start.p0(i64 4, ptr %56) #8
  %383 = load i32, ptr %49, align 4, !tbaa !22
  %384 = sext i32 %383 to i64
  %385 = getelementptr inbounds [2 x ptr], ptr %8, i64 0, i64 %384
  %386 = load ptr, ptr %385, align 8, !tbaa !5
  %387 = invoke noundef i32 @_ZN7Riemann11DynamicMesh14AppendTriangleERKN5Maths7TIndex3IiEEi(ptr noundef nonnull align 8 dereferenceable(452) %386, ptr noundef nonnull align 4 dereferenceable(12) %55, i32 noundef 0)
          to label %388 unwind label %403

388:                                              ; preds = %382
  store i32 %387, ptr %56, align 4, !tbaa !22
  %389 = load i32, ptr %56, align 4, !tbaa !22
  %390 = icmp sgt i32 %389, -1
  br i1 %390, label %391, label %407

391:                                              ; preds = %388
  %392 = load i32, ptr %49, align 4, !tbaa !22
  %393 = sext i32 %392 to i64
  %394 = getelementptr inbounds [2 x ptr], ptr %8, i64 0, i64 %393
  %395 = load ptr, ptr %394, align 8, !tbaa !5
  %396 = invoke noundef ptr @_ZN7Riemann11DynamicMesh10AttributesEv(ptr noundef nonnull align 8 dereferenceable(452) %395)
          to label %397 unwind label %403

397:                                              ; preds = %391
  %398 = invoke noundef ptr @_ZN7Riemann23DynamicMeshAttributeSet13GetMaterialIDEv(ptr noundef nonnull align 8 dereferenceable(168) %396)
          to label %399 unwind label %403

399:                                              ; preds = %397
  %400 = load i32, ptr %56, align 4, !tbaa !22
  %401 = load i32, ptr %35, align 4, !tbaa !22
  invoke void @_ZN7Riemann35TDynamicMeshScalarTriangleAttributeIiE11SetNewValueEii(ptr noundef nonnull align 8 dereferenceable(72) %398, i32 noundef %400, i32 noundef %401)
          to label %402 unwind label %403

402:                                              ; preds = %399
  br label %407

403:                                              ; preds = %399, %397, %391, %382
  %404 = landingpad { ptr, i32 }
          cleanup
  %405 = extractvalue { ptr, i32 } %404, 0
  store ptr %405, ptr %46, align 8
  %406 = extractvalue { ptr, i32 } %404, 1
  store i32 %406, ptr %47, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %56) #8
  br label %410

407:                                              ; preds = %402, %388
  call void @llvm.lifetime.end.p0(i64 4, ptr %56) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr %55) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %54) #8
  br label %408

408:                                              ; preds = %407
  %409 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPN7Riemann16DelaunayTriangleESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %52) #8
  br label %347

410:                                              ; preds = %403, %378
  call void @llvm.lifetime.end.p0(i64 12, ptr %55) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %54) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %53) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %52) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %51) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %50) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %49) #8
  br label %416

411:                                              ; preds = %349
  call void @llvm.lifetime.end.p0(i64 4, ptr %50) #8
  br label %412

412:                                              ; preds = %411
  %413 = load i32, ptr %49, align 4, !tbaa !22
  %414 = add nsw i32 %413, 1
  store i32 %414, ptr %49, align 4, !tbaa !22
  br label %326, !llvm.loop !46

415:                                              ; preds = %330
  call void @_ZN7Riemann8DelaunayD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %48) #8
  call void @llvm.lifetime.end.p0(i64 48, ptr %48) #8
  call void @_ZNSt6vectorIN5Maths8TVector2IfEESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %43) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %43) #8
  br label %418

416:                                              ; preds = %410, %331
  call void @_ZN7Riemann8DelaunayD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %48) #8
  call void @llvm.lifetime.end.p0(i64 48, ptr %48) #8
  br label %417

417:                                              ; preds = %416, %319
  call void @_ZNSt6vectorIN5Maths8TVector2IfEESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %43) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %43) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #8
  call void @llvm.lifetime.end.p0(i64 48, ptr %15) #8
  call void @llvm.lifetime.end.p0(i64 48, ptr %14) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr %13) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr %12) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %8) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #8
  br label %423

418:                                              ; preds = %415, %298
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #8
  call void @llvm.lifetime.end.p0(i64 48, ptr %15) #8
  call void @llvm.lifetime.end.p0(i64 48, ptr %14) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr %13) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr %12) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %8) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #8
  br label %419

419:                                              ; preds = %418
  %420 = load i64, ptr %5, align 8, !tbaa !9
  %421 = add i64 %420, 1
  store i64 %421, ptr %5, align 8, !tbaa !9
  br label %58, !llvm.loop !47

422:                                              ; preds = %64
  ret void

423:                                              ; preds = %417
  %424 = load ptr, ptr %46, align 8
  %425 = load i32, ptr %47, align 4
  %426 = insertvalue { ptr, i32 } poison, ptr %424, 0
  %427 = insertvalue { ptr, i32 } %426, i32 %425, 1
  resume { ptr, i32 } %427
}

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK7Riemann8Voronoi35Plane9GetOriginEv(ptr dead_on_unwind noalias writable sret(%"class.Maths::TVector3") align 4, ptr noundef nonnull align 4 dereferenceable(16)) #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK7Riemann8Voronoi35Plane9GetNormalEv(ptr dead_on_unwind noalias writable sret(%"class.Maths::TVector3") align 4, ptr noundef nonnull align 4 dereferenceable(16)) #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5Maths6Frame3C2ERKNS_8TVector3IfEES4_b(ptr noundef nonnull align 4 dereferenceable(48), ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12), i1 noundef zeroext) unnamed_addr #2 align 2

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

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

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

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK5Maths6Frame39ProjectXZERKNS_8TVector3IfEE(ptr dead_on_unwind noalias writable sret(%"class.Maths::TVector2") align 4, ptr noundef nonnull align 4 dereferenceable(48), ptr noundef nonnull align 4 dereferenceable(12)) #2 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5Maths8TVector3IfE6InfMaxEv(ptr dead_on_unwind noalias writable sret(%"class.Maths::TVector3") align 4) #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZNK5Maths8TVector2IfEmiERKS1_(ptr dead_on_unwind noalias writable sret(%"class.Maths::TVector2") align 4, ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) #4 align 2

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

declare noundef i32 @_ZN7Riemann11DynamicMesh12AppendVertexERKNS_10VertexInfoE(ptr noundef nonnull align 8 dereferenceable(452), ptr noundef nonnull align 4 dereferenceable(47)) #7

declare void @_ZN7Riemann23DynamicMeshAttributeSet14SetVertexColorEPNS_11DynamicMeshEiN5Maths8TVector4IfEE(ptr noundef, i32 noundef, ptr noundef) #7

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(16) ptr @_ZN5Maths8TVector4IfE4ZeroEv() #2 align 2

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

declare void @_ZN7Riemann23DynamicMeshAttributeSet8SetAllUVEPNS_11DynamicMeshEiN5Maths8TVector2IfEEi(ptr noundef, i32 noundef, ptr noundef, i32 noundef) #7

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

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef i32 @_ZN7RiemannL21EncodePlaneToMaterialEi(i32 noundef) #1

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

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

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

declare noundef i32 @_ZN7Riemann11DynamicMesh14AppendTriangleERKN5Maths7TIndex3IiEEi(ptr noundef nonnull align 8 dereferenceable(452), ptr noundef nonnull align 4 dereferenceable(12), i32 noundef) #7

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN7Riemann35TDynamicMeshScalarTriangleAttributeIiE11SetNewValueEii(ptr noundef nonnull align 8 dereferenceable(72), i32 noundef, i32 noundef) #4 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZNK7Riemann11DynamicMesh11GetVertexUVEi(ptr dead_on_unwind noalias writable sret(%"class.Maths::TVector2") align 4, ptr noundef nonnull align 8 dereferenceable(452), i32 noundef) #4 align 2

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

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

declare noundef zeroext i1 @_ZN7Riemann8Delaunay11TriangulateERKSt6vectorIN5Maths8TVector2IfEESaIS4_EE(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(24)) #7

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

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

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

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

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

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 #3 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #4 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #6 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #8 = { 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 = !{!"long", !7, i64 0}
!11 = !{!12, !13, i64 0}
!12 = !{!"_ZTSSt4pairIiiE", !13, i64 0, !13, i64 4}
!13 = !{!"int", !7, i64 0}
!14 = !{!12, !13, i64 4}
!15 = !{!16, !13, i64 28}
!16 = !{!"_ZTSN7Riemann11VoronoiMeshE", !17, i64 0, !21, i64 24, !13, i64 28, !13, i64 32}
!17 = !{!"_ZTSSt6vectorIPN7Riemann11DynamicMeshESaIS2_EE", !18, i64 0}
!18 = !{!"_ZTSSt12_Vector_baseIPN7Riemann11DynamicMeshESaIS2_EE", !19, i64 0}
!19 = !{!"_ZTSNSt12_Vector_baseIPN7Riemann11DynamicMeshESaIS2_EE12_Vector_implE", !20, i64 0}
!20 = !{!"_ZTSNSt12_Vector_baseIPN7Riemann11DynamicMeshESaIS2_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!21 = !{!"bool", !7, i64 0}
!22 = !{!13, !13, i64 0}
!23 = !{!24, !21, i64 45}
!24 = !{!"_ZTSN7Riemann10VertexInfoE", !25, i64 0, !25, i64 12, !25, i64 24, !27, i64 36, !21, i64 44, !21, i64 45, !21, i64 46}
!25 = !{!"_ZTSN5Maths8TVector3IfEE", !26, i64 0, !26, i64 4, !26, i64 8}
!26 = !{!"float", !7, i64 0}
!27 = !{!"_ZTSN5Maths8TVector2IfEE", !26, i64 0, !26, i64 4}
!28 = !{!24, !21, i64 44}
!29 = !{!24, !21, i64 46}
!30 = !{!26, !26, i64 0}
!31 = !{!27, !26, i64 0}
!32 = !{!27, !26, i64 4}
!33 = !{!16, !13, i64 32}
!34 = distinct !{!34, !35}
!35 = !{!"llvm.loop.mustprogress"}
!36 = !{!16, !21, i64 24}
!37 = !{i8 0, i8 2}
!38 = !{}
!39 = distinct !{!39, !35}
!40 = distinct !{!40, !35}
!41 = distinct !{!41, !35}
!42 = !{!43, !13, i64 0}
!43 = !{!"_ZTSN7Riemann16DelaunayTriangleE", !13, i64 0, !13, i64 4, !13, i64 8}
!44 = !{!43, !13, i64 4}
!45 = !{!43, !13, i64 8}
!46 = distinct !{!46, !35}
!47 = distinct !{!47, !35}


; 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.Maths::TVector3" = type { float, float, float }
%"class.Maths::Frame3" = type { %"class.Maths::TVector3", %"class.Maths::TVector3", %"class.Maths::TVector3", %"class.Maths::TVector3" }
%"struct.Riemann::VertexInfo" = type <{ %"class.Maths::TVector3", %"class.Maths::TVector3", %"class.Maths::TVector3", %"class.Maths::TVector2", i8, i8, i8, i8 }>
%"class.Maths::TVector2" = type { float, float }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"class.Maths::TVector4" = type { float, float, float, float }
%"class.Maths::TIndex3" = type { i32, i32, i32 }
%"class.std::vector.20" = type { %"struct.std::_Vector_base.21" }
%"struct.std::_Vector_base.21" = type { %"struct.std::_Vector_base<Maths::TVector2<float>, std::allocator<Maths::TVector2<float>>>::_Vector_impl" }
%"struct.std::_Vector_base<Maths::TVector2<float>, std::allocator<Maths::TVector2<float>>>::_Vector_impl" = type { %"struct.std::_Vector_base<Maths::TVector2<float>, std::allocator<Maths::TVector2<float>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Maths::TVector2<float>, std::allocator<Maths::TVector2<float>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.Riemann::Delaunay" = type { %"class.std::vector.20", %"class.std::vector.81" }
%"class.std::vector.81" = type { %"struct.std::_Vector_base.82" }
%"struct.std::_Vector_base.82" = type { %"struct.std::_Vector_base<Riemann::DelaunayTriangle, std::allocator<Riemann::DelaunayTriangle>>::_Vector_impl" }
%"struct.std::_Vector_base<Riemann::DelaunayTriangle, std::allocator<Riemann::DelaunayTriangle>>::_Vector_impl" = type { %"struct.std::_Vector_base<Riemann::DelaunayTriangle, std::allocator<Riemann::DelaunayTriangle>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Riemann::DelaunayTriangle, std::allocator<Riemann::DelaunayTriangle>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.__gnu_cxx::__normal_iterator.86" = type { ptr }

@__const._ZN7Riemann11VoronoiMesh22BuildMesh_WithoutNoiseERKNS_8Voronoi3E.VertStart = external hidden unnamed_addr constant [2 x i32], align 4

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

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7Riemann11VoronoiMesh22BuildMesh_WithoutNoiseERKNS_8Voronoi3E(ptr noundef nonnull align 8 dereferenceable(36) %0, ptr noundef nonnull align 8 dereferenceable(160) %1) local_unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca [2 x ptr], align 16
  %4 = alloca %"class.Maths::TVector3", align 4
  %5 = alloca %"class.Maths::TVector3", align 4
  %6 = alloca %"class.Maths::Frame3", align 4
  %7 = alloca %"struct.Riemann::VertexInfo", align 4
  %8 = alloca [2 x i32], align 8
  %9 = alloca %"class.Maths::TVector2", align 4
  %10 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %11 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %12 = alloca %"class.Maths::TVector3", align 4
  %13 = alloca %"class.Maths::TVector2", align 4
  %14 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %15 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %16 = alloca %"class.Maths::TVector3", align 4
  %17 = alloca %"class.Maths::TVector2", align 4
  %18 = alloca %"class.Maths::TVector2", align 4
  %19 = alloca %"class.Maths::TVector4", align 4
  %20 = alloca %"class.Maths::TVector2", align 4
  %21 = alloca %"class.Maths::TIndex3", align 4
  %22 = alloca %"class.std::vector.20", align 8
  %23 = alloca %"class.Maths::TVector2", align 4
  %24 = alloca %"class.Riemann::Delaunay", align 8
  %25 = alloca %"class.__gnu_cxx::__normal_iterator.86", align 8
  %26 = alloca %"class.__gnu_cxx::__normal_iterator.86", align 8
  %27 = alloca %"class.Maths::TIndex3", align 4
  %28 = getelementptr inbounds i8, ptr %1, i64 88
  %29 = tail call noundef i64 @_ZNKSt6vectorISt4pairIiiESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %28) #6
  %.not129 = icmp eq i64 %29, 0
  br i1 %.not129, label %._crit_edge128, label %.lr.ph127

.lr.ph127:                                        ; preds = %2
  %30 = getelementptr inbounds i8, ptr %3, i64 8
  %31 = getelementptr inbounds i8, ptr %0, i64 28
  %32 = getelementptr inbounds i8, ptr %1, i64 112
  %33 = getelementptr inbounds i8, ptr %1, i64 64
  %34 = getelementptr inbounds i8, ptr %7, i64 45
  %35 = getelementptr inbounds i8, ptr %7, i64 44
  %36 = getelementptr inbounds i8, ptr %7, i64 46
  %37 = load i64, ptr @__const._ZN7Riemann11VoronoiMesh22BuildMesh_WithoutNoiseERKNS_8Voronoi3E.VertStart, align 4
  %38 = getelementptr inbounds i8, ptr %7, i64 12
  %39 = getelementptr inbounds i8, ptr %1, i64 136
  %40 = getelementptr inbounds i8, ptr %13, i64 4
  %41 = getelementptr inbounds i8, ptr %9, i64 4
  %42 = getelementptr inbounds i8, ptr %7, i64 24
  %43 = getelementptr inbounds i8, ptr %7, i64 36
  %44 = getelementptr inbounds i8, ptr %0, i64 32
  %45 = getelementptr inbounds i8, ptr %0, i64 24
  %46 = getelementptr inbounds i8, ptr %24, i64 24
  %47 = getelementptr inbounds i8, ptr %27, i64 4
  %48 = getelementptr inbounds i8, ptr %27, i64 8
  %49 = getelementptr inbounds i8, ptr %21, i64 4
  %50 = getelementptr inbounds i8, ptr %21, i64 8
  %51 = getelementptr inbounds i8, ptr %8, i64 4
  %52 = getelementptr inbounds i8, ptr %3, i64 8
  br label %53

._crit_edge128:                                   ; preds = %.loopexit, %2
  ret void

53:                                               ; preds = %.lr.ph127, %.loopexit
  %.0125 = phi i64 [ 0, %.lr.ph127 ], [ %226, %.loopexit ]
  %54 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNKSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %28, i64 noundef %.0125) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %3) #6
  %55 = load i32, ptr %54, align 4, !tbaa !5
  %56 = sext i32 %55 to i64
  %57 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPN7Riemann11DynamicMeshESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %56) #6
  %58 = load ptr, ptr %57, align 8, !tbaa !10
  store ptr %58, ptr %3, align 16, !tbaa !10
  store ptr null, ptr %30, align 8, !tbaa !10
  %59 = getelementptr inbounds i8, ptr %54, i64 4
  %60 = load i32, ptr %59, align 4, !tbaa !12
  %61 = icmp slt i32 %60, 0
  %62 = load i32, ptr %31, align 4
  %63 = select i1 %61, i32 %62, i32 %60
  %64 = icmp sgt i32 %63, -1
  %wide.trip.count = select i1 %64, i64 2, i64 1
  br i1 %64, label %65, label %69

65:                                               ; preds = %53
  %66 = zext nneg i32 %63 to i64
  %67 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPN7Riemann11DynamicMeshESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %66) #6
  %68 = load ptr, ptr %67, align 8, !tbaa !10
  store ptr %68, ptr %30, align 8, !tbaa !10
  br label %69

69:                                               ; preds = %65, %53
  %70 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNKSt6vectorIS_IiSaIiEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %32, i64 noundef %.0125) #6
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %4) #6
  %71 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZNKSt6vectorIN7Riemann8Voronoi35PlaneESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %33, i64 noundef %.0125) #6
  call void @_ZNK7Riemann8Voronoi35Plane9GetOriginEv(ptr dead_on_unwind nonnull writable sret(%"class.Maths::TVector3") align 4 %4, ptr noundef nonnull align 4 dereferenceable(16) %71)
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %5) #6
  %72 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZNKSt6vectorIN7Riemann8Voronoi35PlaneESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %33, i64 noundef %.0125) #6
  call void @_ZNK7Riemann8Voronoi35Plane9GetNormalEv(ptr dead_on_unwind nonnull writable sret(%"class.Maths::TVector3") align 4 %5, ptr noundef nonnull align 4 dereferenceable(16) %72)
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %6) #6
  call void @_ZN5Maths6Frame3C2ERKNS_8TVector3IfEES4_b(ptr noundef nonnull align 4 dereferenceable(48) %6, ptr noundef nonnull align 4 dereferenceable(12) %4, ptr noundef nonnull align 4 dereferenceable(12) %5, i1 noundef zeroext false)
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %7) #6
  call void @_ZN7Riemann10VertexInfoC2Ev(ptr noundef nonnull align 4 dereferenceable(47) %7)
  store i8 1, ptr %34, align 1, !tbaa !13
  store i8 1, ptr %35, align 4, !tbaa !19
  store i8 1, ptr %36, align 2, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #6
  store i64 %37, ptr %8, align 8
  br label %85

73:                                               ; preds = %._crit_edge112
  %74 = trunc i64 %.0125 to i32
  %75 = call noundef i32 @_ZN7RiemannL21EncodePlaneToMaterialEi(i32 noundef %74)
  %76 = load i8, ptr %45, align 8, !tbaa !21, !range !27, !noundef !28
  %77 = trunc nuw i8 %76 to i1
  br i1 %77, label %.preheader108, label %158

.preheader108:                                    ; preds = %73
  %78 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %70) #6
  %79 = trunc i64 %78 to i32
  %80 = icmp sgt i32 %79, 2
  br i1 %80, label %.preheader.preheader, label %.loopexit

.preheader.preheader:                             ; preds = %.preheader108
  %81 = load i32, ptr %8, align 8, !tbaa !29
  %82 = load ptr, ptr %3, align 16
  %83 = load i32, ptr %51, align 4
  %84 = load ptr, ptr %52, align 8
  br label %.preheader

85:                                               ; preds = %69, %._crit_edge112
  %indvars.iv = phi i64 [ 0, %69 ], [ %indvars.iv.next, %._crit_edge112 ]
  %86 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN5Maths8TVector3IfEaSERKS1_(ptr noundef nonnull align 4 dereferenceable(12) %38, ptr noundef nonnull align 4 dereferenceable(12) %5)
  %87 = icmp ne i64 %indvars.iv, 1
  %88 = load i32, ptr %31, align 4
  %.not102 = icmp eq i32 %63, %88
  %or.cond = select i1 %87, i1 true, i1 %.not102
  br i1 %or.cond, label %90, label %89

89:                                               ; preds = %85
  call void @_ZN5Maths8TVector3IfEmLEf(ptr noundef nonnull align 4 dereferenceable(12) %38, float noundef -1.000000e+00)
  br label %90

90:                                               ; preds = %89, %85
  %91 = getelementptr inbounds [2 x ptr], ptr %3, i64 0, i64 %indvars.iv
  %92 = load ptr, ptr %91, align 8, !tbaa !10
  %93 = call noundef i32 @_ZNK7Riemann11DynamicMesh14GetVertexCountEv(ptr noundef nonnull align 8 dereferenceable(452) %92)
  %94 = getelementptr inbounds [2 x i32], ptr %8, i64 0, i64 %indvars.iv
  store i32 %93, ptr %94, align 4, !tbaa !29
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #6
  call void @_ZN5Maths8TVector2IfEC2Eff(ptr noundef nonnull align 4 dereferenceable(8) %9, float noundef 0x47EFFFFFE0000000, float noundef 0x47EFFFFFE0000000)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #6
  %95 = call ptr @_ZNKSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %70) #6
  store ptr %95, ptr %10, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #6
  %96 = call ptr @_ZNKSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %70) #6
  store ptr %96, ptr %11, align 8
  %97 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESB_(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull align 8 dereferenceable(8) %11) #6
  br i1 %97, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %.lr.ph, %90
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #6
  %98 = call ptr @_ZNKSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %70) #6
  store ptr %98, ptr %14, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %15) #6
  %99 = call ptr @_ZNKSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %70) #6
  store ptr %99, ptr %15, align 8
  %100 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESB_(ptr noundef nonnull align 8 dereferenceable(8) %14, ptr noundef nonnull align 8 dereferenceable(8) %15) #6
  br i1 %100, label %.lr.ph111, label %._crit_edge112

.lr.ph:                                           ; preds = %90, %.lr.ph
  %101 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %10) #6
  %102 = load i32, ptr %101, align 4, !tbaa !29
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %12) #6
  %103 = sext i32 %102 to i64
  %104 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNKSt6vectorIN5Maths8TVector3IfEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %39, i64 noundef %103) #6
  call void @_ZN5Maths8TVector3IfEC2ERKS1_(ptr noundef nonnull align 4 dereferenceable(12) %12, ptr noundef nonnull align 4 dereferenceable(12) %104)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #6
  call void @_ZNK5Maths6Frame39ProjectXZERKNS_8TVector3IfEE(ptr dead_on_unwind nonnull writable sret(%"class.Maths::TVector2") align 4 %13, ptr noundef nonnull align 4 dereferenceable(48) %6, ptr noundef nonnull align 4 dereferenceable(12) %12)
  %105 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %13, ptr noundef nonnull align 4 dereferenceable(4) %9)
  %106 = load float, ptr %105, align 4, !tbaa !30
  store float %106, ptr %9, align 4, !tbaa !31
  %107 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %40, ptr noundef nonnull align 4 dereferenceable(4) %41)
  %108 = load float, ptr %107, align 4, !tbaa !30
  store float %108, ptr %41, align 4, !tbaa !32
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %12) #6
  %109 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPKiSt6vectorIiSaIiEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %10) #6
  %110 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESB_(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull align 8 dereferenceable(8) %11) #6
  br i1 %110, label %.lr.ph, label %._crit_edge

._crit_edge112:                                   ; preds = %.lr.ph111, %._crit_edge
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #6
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %73, label %85, !llvm.loop !33

.lr.ph111:                                        ; preds = %._crit_edge, %.lr.ph111
  %111 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %14) #6
  %112 = load i32, ptr %111, align 4, !tbaa !29
  %113 = sext i32 %112 to i64
  %114 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNKSt6vectorIN5Maths8TVector3IfEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %39, i64 noundef %113) #6
  %115 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN5Maths8TVector3IfEaSERKS1_(ptr noundef nonnull align 4 dereferenceable(12) %7, ptr noundef nonnull align 4 dereferenceable(12) %114)
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %16) #6
  call void @_ZN5Maths8TVector3IfE6InfMaxEv(ptr dead_on_unwind nonnull writable sret(%"class.Maths::TVector3") align 4 %16)
  %116 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN5Maths8TVector3IfEaSERKS1_(ptr noundef nonnull align 4 dereferenceable(12) %42, ptr noundef nonnull align 4 dereferenceable(12) %16)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %16) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %17) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %18) #6
  call void @_ZNK5Maths6Frame39ProjectXZERKNS_8TVector3IfEE(ptr dead_on_unwind nonnull writable sret(%"class.Maths::TVector2") align 4 %18, ptr noundef nonnull align 4 dereferenceable(48) %6, ptr noundef nonnull align 4 dereferenceable(12) %7)
  call void @_ZNK5Maths8TVector2IfEmiERKS1_(ptr dead_on_unwind nonnull writable sret(%"class.Maths::TVector2") align 4 %17, ptr noundef nonnull align 4 dereferenceable(8) %18, ptr noundef nonnull align 4 dereferenceable(8) %9)
  %117 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZN5Maths8TVector2IfEaSERKS1_(ptr noundef nonnull align 4 dereferenceable(8) %43, ptr noundef nonnull align 4 dereferenceable(8) %17)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %18) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #6
  %118 = call noundef i32 @_ZN7Riemann11DynamicMesh12AppendVertexERKNS_10VertexInfoE(ptr noundef nonnull align 8 dereferenceable(452) %92, ptr noundef nonnull align 4 dereferenceable(47) %7)
  %119 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZN5Maths8TVector4IfE4ZeroEv()
  call void @_ZN5Maths8TVector4IfEC2ERKS1_(ptr noundef nonnull align 4 dereferenceable(16) %19, ptr noundef nonnull align 4 dereferenceable(16) %119)
  call void @_ZN7Riemann23DynamicMeshAttributeSet14SetVertexColorEPNS_11DynamicMeshEiN5Maths8TVector4IfEE(ptr noundef nonnull %92, i32 noundef %118, ptr noundef nonnull %19)
  call void @_ZN5Maths8TVector2IfEC2ERKS1_(ptr noundef nonnull align 4 dereferenceable(8) %20, ptr noundef nonnull align 4 dereferenceable(8) %43)
  %120 = load i32, ptr %44, align 8, !tbaa !35
  call void @_ZN7Riemann23DynamicMeshAttributeSet8SetAllUVEPNS_11DynamicMeshEiN5Maths8TVector2IfEEi(ptr noundef nonnull %92, i32 noundef %118, ptr noundef nonnull %20, i32 noundef %120)
  %121 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPKiSt6vectorIiSaIiEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %14) #6
  %122 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESB_(ptr noundef nonnull align 8 dereferenceable(8) %14, ptr noundef nonnull align 8 dereferenceable(8) %15) #6
  br i1 %122, label %.lr.ph111, label %._crit_edge112

.preheader:                                       ; preds = %.preheader.preheader, %.loopexit156
  %.086124 = phi i32 [ %.092123, %.loopexit156 ], [ 1, %.preheader.preheader ]
  %.092123 = phi i32 [ %142, %.loopexit156 ], [ 2, %.preheader.preheader ]
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %21) #6
  %123 = add nsw i32 %81, %.086124
  %124 = add nsw i32 %81, %.092123
  call void @_ZN5Maths7TIndex3IiEC2Eiii(ptr noundef nonnull align 4 dereferenceable(12) %21, i32 noundef %81, i32 noundef %123, i32 noundef %124)
  %125 = call noundef i32 @_ZN7Riemann11DynamicMesh14AppendTriangleERKN5Maths7TIndex3IiEEi(ptr noundef nonnull align 8 dereferenceable(452) %82, ptr noundef nonnull align 4 dereferenceable(12) %21, i32 noundef 0)
  %126 = icmp sgt i32 %125, -1
  br i1 %126, label %127, label %130

127:                                              ; preds = %.preheader
  %128 = call noundef ptr @_ZN7Riemann11DynamicMesh10AttributesEv(ptr noundef nonnull align 8 dereferenceable(452) %82)
  %129 = call noundef ptr @_ZN7Riemann23DynamicMeshAttributeSet13GetMaterialIDEv(ptr noundef nonnull align 8 dereferenceable(168) %128)
  call void @_ZN7Riemann35TDynamicMeshScalarTriangleAttributeIiE11SetNewValueEii(ptr noundef nonnull align 8 dereferenceable(72) %129, i32 noundef %125, i32 noundef %75)
  br label %130

130:                                              ; preds = %127, %.preheader
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %21) #6
  br i1 %64, label %.peel.next, label %.loopexit156

.peel.next:                                       ; preds = %130
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %21) #6
  %131 = add nsw i32 %83, %.086124
  %132 = add nsw i32 %83, %.092123
  call void @_ZN5Maths7TIndex3IiEC2Eiii(ptr noundef nonnull align 4 dereferenceable(12) %21, i32 noundef %83, i32 noundef %131, i32 noundef %132)
  %133 = load i32, ptr %31, align 4
  %.not101.peel151 = icmp eq i32 %63, %133
  br i1 %.not101.peel151, label %135, label %134

134:                                              ; preds = %.peel.next
  call void @_ZSt4swapIiENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 4 dereferenceable(4) %49, ptr noundef nonnull align 4 dereferenceable(4) %50) #6
  br label %135

135:                                              ; preds = %134, %.peel.next
  %136 = call noundef i32 @_ZN7Riemann11DynamicMesh14AppendTriangleERKN5Maths7TIndex3IiEEi(ptr noundef nonnull align 8 dereferenceable(452) %84, ptr noundef nonnull align 4 dereferenceable(12) %21, i32 noundef 0)
  %137 = icmp sgt i32 %136, -1
  br i1 %137, label %138, label %141

138:                                              ; preds = %135
  %139 = call noundef ptr @_ZN7Riemann11DynamicMesh10AttributesEv(ptr noundef nonnull align 8 dereferenceable(452) %84)
  %140 = call noundef ptr @_ZN7Riemann23DynamicMeshAttributeSet13GetMaterialIDEv(ptr noundef nonnull align 8 dereferenceable(168) %139)
  call void @_ZN7Riemann35TDynamicMeshScalarTriangleAttributeIiE11SetNewValueEii(ptr noundef nonnull align 8 dereferenceable(72) %140, i32 noundef %136, i32 noundef %75)
  br label %141

141:                                              ; preds = %138, %135
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %21) #6
  br i1 %64, label %.loopexit156, label %.preheader.peel.newph

.loopexit156:                                     ; preds = %157, %141, %130
  %142 = add nuw nsw i32 %.092123, 1
  %143 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %70) #6
  %144 = trunc i64 %143 to i32
  %145 = icmp slt i32 %142, %144
  br i1 %145, label %.preheader, label %.loopexit, !llvm.loop !36

.preheader.peel.newph:                            ; preds = %141, %157
  %indvars.iv142 = phi i64 [ %indvars.iv.next143, %157 ], [ 2, %141 ]
  %146 = getelementptr inbounds [2 x i32], ptr %8, i64 0, i64 %indvars.iv142
  %147 = load i32, ptr %146, align 4, !tbaa !29
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %21) #6
  %148 = add nsw i32 %147, %.086124
  %149 = add nsw i32 %147, %.092123
  call void @_ZN5Maths7TIndex3IiEC2Eiii(ptr noundef nonnull align 4 dereferenceable(12) %21, i32 noundef %147, i32 noundef %148, i32 noundef %149)
  %150 = getelementptr inbounds [2 x ptr], ptr %3, i64 0, i64 %indvars.iv142
  %151 = load ptr, ptr %150, align 8, !tbaa !10
  %152 = call noundef i32 @_ZN7Riemann11DynamicMesh14AppendTriangleERKN5Maths7TIndex3IiEEi(ptr noundef nonnull align 8 dereferenceable(452) %151, ptr noundef nonnull align 4 dereferenceable(12) %21, i32 noundef 0)
  %153 = icmp sgt i32 %152, -1
  br i1 %153, label %154, label %157

154:                                              ; preds = %.preheader.peel.newph
  %155 = call noundef ptr @_ZN7Riemann11DynamicMesh10AttributesEv(ptr noundef nonnull align 8 dereferenceable(452) %151)
  %156 = call noundef ptr @_ZN7Riemann23DynamicMeshAttributeSet13GetMaterialIDEv(ptr noundef nonnull align 8 dereferenceable(168) %155)
  call void @_ZN7Riemann35TDynamicMeshScalarTriangleAttributeIiE11SetNewValueEii(ptr noundef nonnull align 8 dereferenceable(72) %156, i32 noundef %152, i32 noundef %75)
  br label %157

157:                                              ; preds = %154, %.preheader.peel.newph
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %21) #6
  %indvars.iv.next143 = add nuw nsw i64 %indvars.iv142, 1
  %exitcond146.not = icmp eq i64 %indvars.iv.next143, %wide.trip.count
  br i1 %exitcond146.not, label %.loopexit156, label %.preheader.peel.newph, !llvm.loop !37

158:                                              ; preds = %73
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %22) #6
  call void @_ZNSt6vectorIN5Maths8TVector2IfEESaIS2_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %22) #6
  %159 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %70) #6
  %.not130 = icmp eq i64 %159, 0
  br i1 %.not130, label %._crit_edge117, label %.lr.ph116

.lr.ph116:                                        ; preds = %158
  %160 = load i32, ptr %8, align 8, !tbaa !29
  br label %162

._crit_edge117:                                   ; preds = %166, %158
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %24) #6
  call void @_ZN7Riemann8DelaunayC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %24) #6
  %161 = invoke noundef zeroext i1 @_ZN7Riemann8Delaunay11TriangulateERKSt6vectorIN5Maths8TVector2IfEESaIS4_EE(ptr noundef nonnull align 8 dereferenceable(48) %24, ptr noundef nonnull align 8 dereferenceable(24) %22)
          to label %.preheader109 unwind label %172

162:                                              ; preds = %.lr.ph116, %166
  %indvars.iv134 = phi i64 [ 0, %.lr.ph116 ], [ %indvars.iv.next135, %166 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %23) #6
  %163 = trunc i64 %indvars.iv134 to i32
  %164 = add i32 %160, %163
  invoke void @_ZNK7Riemann11DynamicMesh11GetVertexUVEi(ptr dead_on_unwind nonnull writable sret(%"class.Maths::TVector2") align 4 %23, ptr noundef nonnull align 8 dereferenceable(452) %58, i32 noundef %164)
          to label %165 unwind label %169

165:                                              ; preds = %162
  invoke void @_ZNSt6vectorIN5Maths8TVector2IfEESaIS2_EE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %22, ptr noundef nonnull align 4 dereferenceable(8) %23)
          to label %166 unwind label %169

166:                                              ; preds = %165
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %23) #6
  %indvars.iv.next135 = add nuw nsw i64 %indvars.iv134, 1
  %167 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %70) #6
  %168 = icmp ugt i64 %167, %indvars.iv.next135
  br i1 %168, label %162, label %._crit_edge117, !llvm.loop !39

169:                                              ; preds = %165, %162
  %170 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %23) #6
  br label %225

171:                                              ; preds = %._crit_edge120
  call void @_ZN7Riemann8DelaunayD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %24) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %24) #6
  call void @_ZNSt6vectorIN5Maths8TVector2IfEESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %22) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %22) #6
  br label %.loopexit

172:                                              ; preds = %._crit_edge117
  %173 = landingpad { ptr, i32 }
          cleanup
  br label %224

.preheader109:                                    ; preds = %._crit_edge117, %._crit_edge120
  %indvars.iv137 = phi i64 [ %indvars.iv.next138, %._crit_edge120 ], [ 0, %._crit_edge117 ]
  %174 = getelementptr inbounds [2 x i32], ptr %8, i64 0, i64 %indvars.iv137
  %175 = load i32, ptr %174, align 4, !tbaa !29
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %25) #6
  %176 = call ptr @_ZNSt6vectorIN7Riemann16DelaunayTriangleESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %46) #6
  store ptr %176, ptr %25, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %26) #6
  %177 = call ptr @_ZNSt6vectorIN7Riemann16DelaunayTriangleESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %46) #6
  store ptr %177, ptr %26, align 8
  %178 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPN7Riemann16DelaunayTriangleESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %25, ptr noundef nonnull align 8 dereferenceable(8) %26) #6
  br i1 %178, label %.lr.ph119, label %._crit_edge120

.lr.ph119:                                        ; preds = %.preheader109
  %.not131 = icmp eq i64 %indvars.iv137, 1
  %179 = getelementptr inbounds [2 x ptr], ptr %3, i64 0, i64 %indvars.iv137
  br i1 %.not131, label %.lr.ph119.split, label %.lr.ph119.split.us

.lr.ph119.split.us:                               ; preds = %.lr.ph119, %196
  %180 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPN7Riemann16DelaunayTriangleESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %25) #6
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %27) #6
  %181 = load i32, ptr %180, align 4, !tbaa !40
  %182 = add nsw i32 %181, %175
  %183 = getelementptr inbounds i8, ptr %180, i64 4
  %184 = load i32, ptr %183, align 4, !tbaa !42
  %185 = add nsw i32 %184, %175
  %186 = getelementptr inbounds i8, ptr %180, i64 8
  %187 = load i32, ptr %186, align 4, !tbaa !43
  %188 = add nsw i32 %187, %175
  call void @_ZN5Maths7TIndex3IiEC2Eiii(ptr noundef nonnull align 4 dereferenceable(12) %27, i32 noundef %182, i32 noundef %185, i32 noundef %188)
  %189 = load ptr, ptr %179, align 8, !tbaa !10
  %190 = invoke noundef i32 @_ZN7Riemann11DynamicMesh14AppendTriangleERKN5Maths7TIndex3IiEEi(ptr noundef nonnull align 8 dereferenceable(452) %189, ptr noundef nonnull align 4 dereferenceable(12) %27, i32 noundef 0)
          to label %191 unwind label %.split.us

191:                                              ; preds = %.lr.ph119.split.us
  %192 = icmp sgt i32 %190, -1
  br i1 %192, label %193, label %196

193:                                              ; preds = %191
  %194 = call noundef ptr @_ZN7Riemann11DynamicMesh10AttributesEv(ptr noundef nonnull align 8 dereferenceable(452) %189)
  %195 = call noundef ptr @_ZN7Riemann23DynamicMeshAttributeSet13GetMaterialIDEv(ptr noundef nonnull align 8 dereferenceable(168) %194)
  invoke void @_ZN7Riemann35TDynamicMeshScalarTriangleAttributeIiE11SetNewValueEii(ptr noundef nonnull align 8 dereferenceable(72) %195, i32 noundef %190, i32 noundef %75)
          to label %196 unwind label %.split.us

196:                                              ; preds = %193, %191
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %27) #6
  %197 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPN7Riemann16DelaunayTriangleESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %25) #6
  %198 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPN7Riemann16DelaunayTriangleESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %25, ptr noundef nonnull align 8 dereferenceable(8) %26) #6
  br i1 %198, label %.lr.ph119.split.us, label %._crit_edge120

.split.us:                                        ; preds = %193, %.lr.ph119.split.us
  %199 = landingpad { ptr, i32 }
          cleanup
  br label %220

._crit_edge120:                                   ; preds = %196, %221, %.preheader109
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %26) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %25) #6
  %indvars.iv.next138 = add nuw nsw i64 %indvars.iv137, 1
  %exitcond141.not = icmp eq i64 %indvars.iv.next138, %wide.trip.count
  br i1 %exitcond141.not, label %171, label %.preheader109, !llvm.loop !44

.lr.ph119.split:                                  ; preds = %.lr.ph119, %221
  %200 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPN7Riemann16DelaunayTriangleESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %25) #6
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %27) #6
  %201 = load i32, ptr %200, align 4, !tbaa !40
  %202 = add nsw i32 %201, %175
  %203 = getelementptr inbounds i8, ptr %200, i64 4
  %204 = load i32, ptr %203, align 4, !tbaa !42
  %205 = add nsw i32 %204, %175
  %206 = getelementptr inbounds i8, ptr %200, i64 8
  %207 = load i32, ptr %206, align 4, !tbaa !43
  %208 = add nsw i32 %207, %175
  call void @_ZN5Maths7TIndex3IiEC2Eiii(ptr noundef nonnull align 4 dereferenceable(12) %27, i32 noundef %202, i32 noundef %205, i32 noundef %208)
  %209 = load i32, ptr %31, align 4
  %.not = icmp eq i32 %63, %209
  br i1 %.not, label %211, label %210

210:                                              ; preds = %.lr.ph119.split
  call void @_ZSt4swapIiENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 4 dereferenceable(4) %47, ptr noundef nonnull align 4 dereferenceable(4) %48) #6
  br label %211

211:                                              ; preds = %210, %.lr.ph119.split
  %212 = load ptr, ptr %179, align 8, !tbaa !10
  %213 = invoke noundef i32 @_ZN7Riemann11DynamicMesh14AppendTriangleERKN5Maths7TIndex3IiEEi(ptr noundef nonnull align 8 dereferenceable(452) %212, ptr noundef nonnull align 4 dereferenceable(12) %27, i32 noundef 0)
          to label %214 unwind label %.split

214:                                              ; preds = %211
  %215 = icmp sgt i32 %213, -1
  br i1 %215, label %216, label %221

216:                                              ; preds = %214
  %217 = call noundef ptr @_ZN7Riemann11DynamicMesh10AttributesEv(ptr noundef nonnull align 8 dereferenceable(452) %212)
  %218 = call noundef ptr @_ZN7Riemann23DynamicMeshAttributeSet13GetMaterialIDEv(ptr noundef nonnull align 8 dereferenceable(168) %217)
  invoke void @_ZN7Riemann35TDynamicMeshScalarTriangleAttributeIiE11SetNewValueEii(ptr noundef nonnull align 8 dereferenceable(72) %218, i32 noundef %213, i32 noundef %75)
          to label %221 unwind label %.split

.split:                                           ; preds = %216, %211
  %219 = landingpad { ptr, i32 }
          cleanup
  br label %220

220:                                              ; preds = %.split.us, %.split
  %.us-phi = phi { ptr, i32 } [ %219, %.split ], [ %199, %.split.us ]
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %27) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %26) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %25) #6
  br label %224

221:                                              ; preds = %216, %214
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %27) #6
  %222 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPN7Riemann16DelaunayTriangleESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %25) #6
  %223 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPN7Riemann16DelaunayTriangleESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %25, ptr noundef nonnull align 8 dereferenceable(8) %26) #6
  br i1 %223, label %.lr.ph119.split, label %._crit_edge120

224:                                              ; preds = %220, %172
  %.pn = phi { ptr, i32 } [ %.us-phi, %220 ], [ %173, %172 ]
  call void @_ZN7Riemann8DelaunayD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %24) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %24) #6
  br label %225

225:                                              ; preds = %224, %169
  %.pn99 = phi { ptr, i32 } [ %170, %169 ], [ %.pn, %224 ]
  call void @_ZNSt6vectorIN5Maths8TVector2IfEESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %22) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %22) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #6
  resume { ptr, i32 } %.pn99

.loopexit:                                        ; preds = %.loopexit156, %.preheader108, %171
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #6
  %226 = add nuw i64 %.0125, 1
  %227 = call noundef i64 @_ZNKSt6vectorISt4pairIiiESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %28) #6
  %228 = icmp ult i64 %226, %227
  br i1 %228, label %53, label %._crit_edge128, !llvm.loop !45
}

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK7Riemann8Voronoi35Plane9GetOriginEv(ptr dead_on_unwind noalias writable sret(%"class.Maths::TVector3") align 4, ptr noundef nonnull align 4 dereferenceable(16)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK7Riemann8Voronoi35Plane9GetNormalEv(ptr dead_on_unwind noalias writable sret(%"class.Maths::TVector3") align 4, ptr noundef nonnull align 4 dereferenceable(16)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5Maths6Frame3C2ERKNS_8TVector3IfEES4_b(ptr noundef nonnull align 4 dereferenceable(48), ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12), i1 noundef zeroext) unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN7Riemann10VertexInfoC2Ev(ptr noundef nonnull align 4 dereferenceable(47)) unnamed_addr #3 align 2

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

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK5Maths6Frame39ProjectXZERKNS_8TVector3IfEE(ptr dead_on_unwind noalias writable sret(%"class.Maths::TVector2") align 4, ptr noundef nonnull align 4 dereferenceable(48), ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #2 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5Maths8TVector3IfE6InfMaxEv(ptr dead_on_unwind noalias writable sret(%"class.Maths::TVector3") align 4) local_unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZNK5Maths8TVector2IfEmiERKS1_(ptr dead_on_unwind noalias writable sret(%"class.Maths::TVector2") align 4, ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #3 align 2

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

declare noundef i32 @_ZN7Riemann11DynamicMesh12AppendVertexERKNS_10VertexInfoE(ptr noundef nonnull align 8 dereferenceable(452), ptr noundef nonnull align 4 dereferenceable(47)) local_unnamed_addr #5

declare void @_ZN7Riemann23DynamicMeshAttributeSet14SetVertexColorEPNS_11DynamicMeshEiN5Maths8TVector4IfEE(ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #5

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

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

declare void @_ZN7Riemann23DynamicMeshAttributeSet8SetAllUVEPNS_11DynamicMeshEiN5Maths8TVector2IfEEi(ptr noundef, i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #5

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

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef i32 @_ZN7RiemannL21EncodePlaneToMaterialEi(i32 noundef) local_unnamed_addr #1

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZSt4swapIiENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #4

declare noundef i32 @_ZN7Riemann11DynamicMesh14AppendTriangleERKN5Maths7TIndex3IiEEi(ptr noundef nonnull align 8 dereferenceable(452), ptr noundef nonnull align 4 dereferenceable(12), i32 noundef) local_unnamed_addr #5

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN7Riemann35TDynamicMeshScalarTriangleAttributeIiE11SetNewValueEii(ptr noundef nonnull align 8 dereferenceable(72), i32 noundef, i32 noundef) local_unnamed_addr #3 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZNK7Riemann11DynamicMesh11GetVertexUVEi(ptr dead_on_unwind noalias writable sret(%"class.Maths::TVector2") align 4, ptr noundef nonnull align 8 dereferenceable(452), i32 noundef) local_unnamed_addr #3 align 2

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

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

declare noundef zeroext i1 @_ZN7Riemann8Delaunay11TriangulateERKSt6vectorIN5Maths8TVector2IfEESaIS4_EE(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #5

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

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

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

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

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

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

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 #3 = { 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 #4 = { 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 #5 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { 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, !7, i64 0}
!6 = !{!"_ZTSSt4pairIiiE", !7, i64 0, !7, i64 4}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!11, !11, i64 0}
!11 = !{!"any pointer", !8, i64 0}
!12 = !{!6, !7, i64 4}
!13 = !{!14, !18, i64 45}
!14 = !{!"_ZTSN7Riemann10VertexInfoE", !15, i64 0, !15, i64 12, !15, i64 24, !17, i64 36, !18, i64 44, !18, i64 45, !18, i64 46}
!15 = !{!"_ZTSN5Maths8TVector3IfEE", !16, i64 0, !16, i64 4, !16, i64 8}
!16 = !{!"float", !8, i64 0}
!17 = !{!"_ZTSN5Maths8TVector2IfEE", !16, i64 0, !16, i64 4}
!18 = !{!"bool", !8, i64 0}
!19 = !{!14, !18, i64 44}
!20 = !{!14, !18, i64 46}
!21 = !{!22, !18, i64 24}
!22 = !{!"_ZTSN7Riemann11VoronoiMeshE", !23, i64 0, !18, i64 24, !7, i64 28, !7, i64 32}
!23 = !{!"_ZTSSt6vectorIPN7Riemann11DynamicMeshESaIS2_EE", !24, i64 0}
!24 = !{!"_ZTSSt12_Vector_baseIPN7Riemann11DynamicMeshESaIS2_EE", !25, i64 0}
!25 = !{!"_ZTSNSt12_Vector_baseIPN7Riemann11DynamicMeshESaIS2_EE12_Vector_implE", !26, i64 0}
!26 = !{!"_ZTSNSt12_Vector_baseIPN7Riemann11DynamicMeshESaIS2_EE17_Vector_impl_dataE", !11, i64 0, !11, i64 8, !11, i64 16}
!27 = !{i8 0, i8 2}
!28 = !{}
!29 = !{!7, !7, i64 0}
!30 = !{!16, !16, i64 0}
!31 = !{!17, !16, i64 0}
!32 = !{!17, !16, i64 4}
!33 = distinct !{!33, !34}
!34 = !{!"llvm.loop.mustprogress"}
!35 = !{!22, !7, i64 32}
!36 = distinct !{!36, !34}
!37 = distinct !{!37, !34, !38}
!38 = !{!"llvm.loop.peeled.count", i32 2}
!39 = distinct !{!39, !34}
!40 = !{!41, !7, i64 0}
!41 = !{!"_ZTSN7Riemann16DelaunayTriangleE", !7, i64 0, !7, i64 4, !7, i64 8}
!42 = !{!41, !7, i64 4}
!43 = !{!41, !7, i64 8}
!44 = distinct !{!44, !34}
!45 = distinct !{!45, !34}


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