; LLVM IR from zeux/meshoptimizer :: demo/main.ll (Z16simplifyCompleteRK4Mesh)

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

%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator.2" = type { i8 }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<Vertex, std::allocator<Vertex>>::_Vector_impl" }
%"struct.std::_Vector_base<Vertex, std::allocator<Vertex>>::_Vector_impl" = type { %"struct.std::_Vector_base<Vertex, std::allocator<Vertex>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Vertex, std::allocator<Vertex>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%struct.meshopt_VertexCacheStatistics = type { i32, i32, float, float }
%struct.meshopt_VertexFetchStatistics = type { i32, float }
%"class.std::vector.15" = type { %"struct.std::_Vector_base.16" }
%"struct.std::_Vector_base.16" = type { %"struct.std::_Vector_base<PackedVertexOct, std::allocator<PackedVertexOct>>::_Vector_impl" }
%"struct.std::_Vector_base<PackedVertexOct, std::allocator<PackedVertexOct>>::_Vector_impl" = type { %"struct.std::_Vector_base<PackedVertexOct, std::allocator<PackedVertexOct>>::_Vector_impl_data" }
%"struct.std::_Vector_base<PackedVertexOct, std::allocator<PackedVertexOct>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator.17" = type { i8 }
%"class.std::vector.20" = type { %"struct.std::_Vector_base.21" }
%"struct.std::_Vector_base.21" = type { %"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator.22" = type { i8 }
%struct.Mesh = type { %"class.std::vector", %"class.std::vector.0" }
%struct.Vertex = type { float, float, float, float, float, float, float, float }

@.str.11 = external hidden unnamed_addr constant [95 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [85 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [1 x i8], align 1

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef double @_Z9timestampv() #1

declare i32 @printf(ptr noundef, ...) #2

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

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

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

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

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

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

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

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

declare void @meshopt_optimizeVertexCache(ptr noundef, ptr noundef, i64 noundef, i64 noundef) #2

declare void @meshopt_optimizeOverdraw(ptr noundef, ptr noundef, i64 noundef, ptr noundef, i64 noundef, i64 noundef, float noundef) #2

declare i64 @meshopt_optimizeVertexFetch(ptr noundef, ptr noundef, i64 noundef, ptr noundef, i64 noundef, i64 noundef) #2

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_Z16simplifyCompleteRK4Mesh(ptr noundef nonnull align 8 dereferenceable(48) %0) #6 personality ptr @__gxx_personality_v0 {
  %2 = alloca ptr, align 8
  %3 = alloca double, align 8
  %4 = alloca [5 x %"class.std::vector.0"], align 16
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i64, align 8
  %8 = alloca ptr, align 8
  %9 = alloca float, align 4
  %10 = alloca i64, align 8
  %11 = alloca float, align 4
  %12 = alloca ptr, align 8
  %13 = alloca double, align 8
  %14 = alloca i64, align 8
  %15 = alloca ptr, align 8
  %16 = alloca [5 x i64], align 16
  %17 = alloca [5 x i64], align 16
  %18 = alloca i64, align 8
  %19 = alloca i32, align 4
  %20 = alloca %"class.std::vector.0", align 8
  %21 = alloca %"class.std::allocator.2", align 1
  %22 = alloca i64, align 8
  %23 = alloca %"class.std::vector", align 8
  %24 = alloca double, align 8
  %25 = alloca %struct.meshopt_VertexCacheStatistics, align 4
  %26 = alloca %struct.meshopt_VertexFetchStatistics, align 4
  %27 = alloca %struct.meshopt_VertexCacheStatistics, align 4
  %28 = alloca %struct.meshopt_VertexFetchStatistics, align 4
  %29 = alloca %"class.std::vector.15", align 8
  %30 = alloca %"class.std::allocator.17", align 1
  %31 = alloca %"class.std::vector.20", align 8
  %32 = alloca %"class.std::allocator.22", align 1
  %33 = alloca %"class.std::vector.20", align 8
  %34 = alloca %"class.std::allocator.22", align 1
  store ptr %0, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #9
  %35 = call noundef double @_Z9timestampv()
  store double %35, ptr %3, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 120, ptr %4) #9
  %36 = getelementptr inbounds [5 x %"class.std::vector.0"], ptr %4, i32 0, i32 0
  %37 = getelementptr inbounds %"class.std::vector.0", ptr %36, i64 5
  br label %38

38:                                               ; preds = %38, %1
  %39 = phi ptr [ %36, %1 ], [ %40, %38 ]
  call void @_ZNSt6vectorIjSaIjEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %39) #9
  %40 = getelementptr inbounds %"class.std::vector.0", ptr %39, i64 1
  %41 = icmp eq ptr %40, %37
  br i1 %41, label %42, label %38

42:                                               ; preds = %38
  %43 = load ptr, ptr %2, align 8, !tbaa !5
  %44 = getelementptr inbounds %struct.Mesh, ptr %43, i32 0, i32 1
  %45 = getelementptr inbounds [5 x %"class.std::vector.0"], ptr %4, i64 0, i64 0
  %46 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIjSaIjEEaSERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %45, ptr noundef nonnull align 8 dereferenceable(24) %44)
          to label %47 unwind label %52

47:                                               ; preds = %42
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #9
  store i64 1, ptr %7, align 8, !tbaa !11
  br label %48

48:                                               ; preds = %105, %47
  %49 = load i64, ptr %7, align 8, !tbaa !11
  %50 = icmp ult i64 %49, 5
  br i1 %50, label %56, label %51

51:                                               ; preds = %48
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #9
  br label %112

52:                                               ; preds = %42
  %53 = landingpad { ptr, i32 }
          cleanup
  %54 = extractvalue { ptr, i32 } %53, 0
  store ptr %54, ptr %5, align 8
  %55 = extractvalue { ptr, i32 } %53, 1
  store i32 %55, ptr %6, align 4
  br label %408

56:                                               ; preds = %48
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #9
  %57 = load i64, ptr %7, align 8, !tbaa !11
  %58 = getelementptr inbounds [5 x %"class.std::vector.0"], ptr %4, i64 0, i64 %57
  store ptr %58, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #9
  %59 = load i64, ptr %7, align 8, !tbaa !11
  %60 = uitofp i64 %59 to float
  %61 = call float @powf(float noundef 0x3FE6666660000000, float noundef %60) #9
  store float %61, ptr %9, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #9
  %62 = load ptr, ptr %2, align 8, !tbaa !5
  %63 = getelementptr inbounds %struct.Mesh, ptr %62, i32 0, i32 1
  %64 = call noundef i64 @_ZNKSt6vectorIjSaIjEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %63) #9
  %65 = uitofp i64 %64 to float
  %66 = load float, ptr %9, align 4, !tbaa !13
  %67 = fmul float %65, %66
  %68 = fptoui float %67 to i64
  %69 = udiv i64 %68, 3
  %70 = mul i64 %69, 3
  store i64 %70, ptr %10, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #9
  store float 0x3F847AE140000000, ptr %11, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #9
  %71 = load i64, ptr %7, align 8, !tbaa !11
  %72 = sub i64 %71, 1
  %73 = getelementptr inbounds [5 x %"class.std::vector.0"], ptr %4, i64 0, i64 %72
  store ptr %73, ptr %12, align 8, !tbaa !5
  %74 = load ptr, ptr %12, align 8, !tbaa !5
  %75 = call noundef i64 @_ZNKSt6vectorIjSaIjEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %74) #9
  %76 = load i64, ptr %10, align 8, !tbaa !11
  %77 = icmp ult i64 %75, %76
  br i1 %77, label %78, label %81

78:                                               ; preds = %56
  %79 = load ptr, ptr %12, align 8, !tbaa !5
  %80 = call noundef i64 @_ZNKSt6vectorIjSaIjEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %79) #9
  store i64 %80, ptr %10, align 8, !tbaa !11
  br label %81

81:                                               ; preds = %78, %56
  %82 = load ptr, ptr %8, align 8, !tbaa !5
  %83 = load ptr, ptr %12, align 8, !tbaa !5
  %84 = call noundef i64 @_ZNKSt6vectorIjSaIjEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %83) #9
  invoke void @_ZNSt6vectorIjSaIjEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %82, i64 noundef %84)
          to label %85 unwind label %108

85:                                               ; preds = %81
  %86 = load ptr, ptr %8, align 8, !tbaa !5
  %87 = load ptr, ptr %8, align 8, !tbaa !5
  %88 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %87, i64 noundef 0) #9
  %89 = load ptr, ptr %12, align 8, !tbaa !5
  %90 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %89, i64 noundef 0) #9
  %91 = load ptr, ptr %12, align 8, !tbaa !5
  %92 = call noundef i64 @_ZNKSt6vectorIjSaIjEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %91) #9
  %93 = load ptr, ptr %2, align 8, !tbaa !5
  %94 = getelementptr inbounds %struct.Mesh, ptr %93, i32 0, i32 0
  %95 = call noundef nonnull align 4 dereferenceable(32) ptr @_ZNKSt6vectorI6VertexSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %94, i64 noundef 0) #9
  %96 = getelementptr inbounds %struct.Vertex, ptr %95, i32 0, i32 0
  %97 = load ptr, ptr %2, align 8, !tbaa !5
  %98 = getelementptr inbounds %struct.Mesh, ptr %97, i32 0, i32 0
  %99 = call noundef i64 @_ZNKSt6vectorI6VertexSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %98) #9
  %100 = load i64, ptr %10, align 8, !tbaa !11
  %101 = load float, ptr %11, align 4, !tbaa !13
  %102 = invoke noundef i64 @_Z16meshopt_simplifyIjEmPT_PKS0_mPKfmmmfjPf(ptr noundef %88, ptr noundef %90, i64 noundef %92, ptr noundef %96, i64 noundef %99, i64 noundef 32, i64 noundef %100, float noundef %101, i32 noundef 0, ptr noundef null)
          to label %103 unwind label %108

103:                                              ; preds = %85
  invoke void @_ZNSt6vectorIjSaIjEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %86, i64 noundef %102)
          to label %104 unwind label %108

104:                                              ; preds = %103
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #9
  br label %105

105:                                              ; preds = %104
  %106 = load i64, ptr %7, align 8, !tbaa !11
  %107 = add i64 %106, 1
  store i64 %107, ptr %7, align 8, !tbaa !11
  br label %48, !llvm.loop !15

108:                                              ; preds = %103, %85, %81
  %109 = landingpad { ptr, i32 }
          cleanup
  %110 = extractvalue { ptr, i32 } %109, 0
  store ptr %110, ptr %5, align 8
  %111 = extractvalue { ptr, i32 } %109, 1
  store i32 %111, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #9
  br label %408

112:                                              ; preds = %51
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #9
  %113 = call noundef double @_Z9timestampv()
  store double %113, ptr %13, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #9
  store i64 0, ptr %14, align 8, !tbaa !11
  br label %114

114:                                              ; preds = %145, %112
  %115 = load i64, ptr %14, align 8, !tbaa !11
  %116 = icmp ult i64 %115, 5
  br i1 %116, label %118, label %117

117:                                              ; preds = %114
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #9
  br label %152

118:                                              ; preds = %114
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #9
  %119 = load i64, ptr %14, align 8, !tbaa !11
  %120 = getelementptr inbounds [5 x %"class.std::vector.0"], ptr %4, i64 0, i64 %119
  store ptr %120, ptr %15, align 8, !tbaa !5
  %121 = load ptr, ptr %15, align 8, !tbaa !5
  %122 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %121, i64 noundef 0) #9
  %123 = load ptr, ptr %15, align 8, !tbaa !5
  %124 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %123, i64 noundef 0) #9
  %125 = load ptr, ptr %15, align 8, !tbaa !5
  %126 = call noundef i64 @_ZNKSt6vectorIjSaIjEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %125) #9
  %127 = load ptr, ptr %2, align 8, !tbaa !5
  %128 = getelementptr inbounds %struct.Mesh, ptr %127, i32 0, i32 0
  %129 = call noundef i64 @_ZNKSt6vectorI6VertexSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %128) #9
  invoke void @meshopt_optimizeVertexCache(ptr noundef %122, ptr noundef %124, i64 noundef %126, i64 noundef %129)
          to label %130 unwind label %148

130:                                              ; preds = %118
  %131 = load ptr, ptr %15, align 8, !tbaa !5
  %132 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %131, i64 noundef 0) #9
  %133 = load ptr, ptr %15, align 8, !tbaa !5
  %134 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %133, i64 noundef 0) #9
  %135 = load ptr, ptr %15, align 8, !tbaa !5
  %136 = call noundef i64 @_ZNKSt6vectorIjSaIjEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %135) #9
  %137 = load ptr, ptr %2, align 8, !tbaa !5
  %138 = getelementptr inbounds %struct.Mesh, ptr %137, i32 0, i32 0
  %139 = call noundef nonnull align 4 dereferenceable(32) ptr @_ZNKSt6vectorI6VertexSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %138, i64 noundef 0) #9
  %140 = getelementptr inbounds %struct.Vertex, ptr %139, i32 0, i32 0
  %141 = load ptr, ptr %2, align 8, !tbaa !5
  %142 = getelementptr inbounds %struct.Mesh, ptr %141, i32 0, i32 0
  %143 = call noundef i64 @_ZNKSt6vectorI6VertexSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %142) #9
  invoke void @meshopt_optimizeOverdraw(ptr noundef %132, ptr noundef %134, i64 noundef %136, ptr noundef %140, i64 noundef %143, i64 noundef 32, float noundef 1.000000e+00)
          to label %144 unwind label %148

144:                                              ; preds = %130
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #9
  br label %145

145:                                              ; preds = %144
  %146 = load i64, ptr %14, align 8, !tbaa !11
  %147 = add i64 %146, 1
  store i64 %147, ptr %14, align 8, !tbaa !11
  br label %114, !llvm.loop !17

148:                                              ; preds = %130, %118
  %149 = landingpad { ptr, i32 }
          cleanup
  %150 = extractvalue { ptr, i32 } %149, 0
  store ptr %150, ptr %5, align 8
  %151 = extractvalue { ptr, i32 } %149, 1
  store i32 %151, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #9
  br label %407

152:                                              ; preds = %117
  call void @llvm.lifetime.start.p0(i64 40, ptr %16) #9
  call void @llvm.memset.p0.i64(ptr align 16 %16, i8 0, i64 40, i1 false)
  call void @llvm.lifetime.start.p0(i64 40, ptr %17) #9
  call void @llvm.memset.p0.i64(ptr align 16 %17, i8 0, i64 40, i1 false)
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #9
  store i64 0, ptr %18, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #9
  store i32 4, ptr %19, align 4, !tbaa !18
  br label %153

153:                                              ; preds = %175, %152
  %154 = load i32, ptr %19, align 4, !tbaa !18
  %155 = icmp sge i32 %154, 0
  br i1 %155, label %157, label %156

156:                                              ; preds = %153
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #9
  br label %178

157:                                              ; preds = %153
  %158 = load i64, ptr %18, align 8, !tbaa !11
  %159 = load i32, ptr %19, align 4, !tbaa !18
  %160 = sext i32 %159 to i64
  %161 = getelementptr inbounds [5 x i64], ptr %16, i64 0, i64 %160
  store i64 %158, ptr %161, align 8, !tbaa !11
  %162 = load i32, ptr %19, align 4, !tbaa !18
  %163 = sext i32 %162 to i64
  %164 = getelementptr inbounds [5 x %"class.std::vector.0"], ptr %4, i64 0, i64 %163
  %165 = call noundef i64 @_ZNKSt6vectorIjSaIjEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %164) #9
  %166 = load i32, ptr %19, align 4, !tbaa !18
  %167 = sext i32 %166 to i64
  %168 = getelementptr inbounds [5 x i64], ptr %17, i64 0, i64 %167
  store i64 %165, ptr %168, align 8, !tbaa !11
  %169 = load i32, ptr %19, align 4, !tbaa !18
  %170 = sext i32 %169 to i64
  %171 = getelementptr inbounds [5 x %"class.std::vector.0"], ptr %4, i64 0, i64 %170
  %172 = call noundef i64 @_ZNKSt6vectorIjSaIjEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %171) #9
  %173 = load i64, ptr %18, align 8, !tbaa !11
  %174 = add i64 %173, %172
  store i64 %174, ptr %18, align 8, !tbaa !11
  br label %175

175:                                              ; preds = %157
  %176 = load i32, ptr %19, align 4, !tbaa !18
  %177 = add nsw i32 %176, -1
  store i32 %177, ptr %19, align 4, !tbaa !18
  br label %153, !llvm.loop !20

178:                                              ; preds = %156
  call void @llvm.lifetime.start.p0(i64 24, ptr %20) #9
  %179 = load i64, ptr %18, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 1, ptr %21) #9
  call void @_ZNSaIjEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %21) #9
  invoke void @_ZNSt6vectorIjSaIjEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %20, i64 noundef %179, ptr noundef nonnull align 1 dereferenceable(1) %21)
          to label %180 unwind label %185

180:                                              ; preds = %178
  call void @_ZNSt15__new_allocatorIjED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %21) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr %21) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #9
  store i64 0, ptr %22, align 8, !tbaa !11
  br label %181

181:                                              ; preds = %201, %180
  %182 = load i64, ptr %22, align 8, !tbaa !11
  %183 = icmp ult i64 %182, 5
  br i1 %183, label %189, label %184

184:                                              ; preds = %181
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #9
  br label %204

185:                                              ; preds = %178
  %186 = landingpad { ptr, i32 }
          cleanup
  %187 = extractvalue { ptr, i32 } %186, 0
  store ptr %187, ptr %5, align 8
  %188 = extractvalue { ptr, i32 } %186, 1
  store i32 %188, ptr %6, align 4
  call void @_ZNSt15__new_allocatorIjED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %21) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr %21) #9
  br label %406

189:                                              ; preds = %181
  %190 = load i64, ptr %22, align 8, !tbaa !11
  %191 = getelementptr inbounds [5 x i64], ptr %16, i64 0, i64 %190
  %192 = load i64, ptr %191, align 8, !tbaa !11
  %193 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %20, i64 noundef %192) #9
  %194 = load i64, ptr %22, align 8, !tbaa !11
  %195 = getelementptr inbounds [5 x %"class.std::vector.0"], ptr %4, i64 0, i64 %194
  %196 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %195, i64 noundef 0) #9
  %197 = load i64, ptr %22, align 8, !tbaa !11
  %198 = getelementptr inbounds [5 x %"class.std::vector.0"], ptr %4, i64 0, i64 %197
  %199 = call noundef i64 @_ZNKSt6vectorIjSaIjEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %198) #9
  %200 = mul i64 %199, 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %193, ptr align 4 %196, i64 %200, i1 false)
  br label %201

201:                                              ; preds = %189
  %202 = load i64, ptr %22, align 8, !tbaa !11
  %203 = add i64 %202, 1
  store i64 %203, ptr %22, align 8, !tbaa !11
  br label %181, !llvm.loop !21

204:                                              ; preds = %184
  call void @llvm.lifetime.start.p0(i64 24, ptr %23) #9
  %205 = load ptr, ptr %2, align 8, !tbaa !5
  %206 = getelementptr inbounds %struct.Mesh, ptr %205, i32 0, i32 0
  invoke void @_ZNSt6vectorI6VertexSaIS0_EEC2ERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %23, ptr noundef nonnull align 8 dereferenceable(24) %206)
          to label %207 unwind label %334

207:                                              ; preds = %204
  %208 = call noundef nonnull align 4 dereferenceable(32) ptr @_ZNSt6vectorI6VertexSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %23, i64 noundef 0) #9
  %209 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %20, i64 noundef 0) #9
  %210 = call noundef i64 @_ZNKSt6vectorIjSaIjEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %20) #9
  %211 = call noundef nonnull align 4 dereferenceable(32) ptr @_ZNSt6vectorI6VertexSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %23, i64 noundef 0) #9
  %212 = call noundef i64 @_ZNKSt6vectorI6VertexSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %23) #9
  %213 = invoke i64 @meshopt_optimizeVertexFetch(ptr noundef %208, ptr noundef %209, i64 noundef %210, ptr noundef %211, i64 noundef %212, i64 noundef 32)
          to label %214 unwind label %338

214:                                              ; preds = %207
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #9
  %215 = call noundef double @_Z9timestampv()
  store double %215, ptr %24, align 8, !tbaa !9
  %216 = getelementptr inbounds [5 x i64], ptr %17, i64 0, i64 0
  %217 = load i64, ptr %216, align 16, !tbaa !11
  %218 = trunc i64 %217 to i32
  %219 = sdiv i32 %218, 3
  %220 = getelementptr inbounds [5 x i64], ptr %17, i64 0, i64 4
  %221 = load i64, ptr %220, align 16, !tbaa !11
  %222 = trunc i64 %221 to i32
  %223 = sdiv i32 %222, 3
  %224 = load double, ptr %13, align 8, !tbaa !9
  %225 = load double, ptr %3, align 8, !tbaa !9
  %226 = fsub double %224, %225
  %227 = fmul double %226, 1.000000e+03
  %228 = load double, ptr %24, align 8, !tbaa !9
  %229 = load double, ptr %13, align 8, !tbaa !9
  %230 = fsub double %228, %229
  %231 = fmul double %230, 1.000000e+03
  %232 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.11, ptr noundef @.str.12, i32 noundef %219, i32 noundef 5, i32 noundef %223, double noundef %227, double noundef %231)
          to label %233 unwind label %342

233:                                              ; preds = %214
  call void @llvm.lifetime.start.p0(i64 16, ptr %25) #9
  %234 = getelementptr inbounds [5 x i64], ptr %16, i64 0, i64 0
  %235 = load i64, ptr %234, align 16, !tbaa !11
  %236 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %20, i64 noundef %235) #9
  %237 = getelementptr inbounds [5 x i64], ptr %17, i64 0, i64 0
  %238 = load i64, ptr %237, align 16, !tbaa !11
  %239 = call noundef i64 @_ZNKSt6vectorI6VertexSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %23) #9
  %240 = invoke { i64, <2 x float> } @meshopt_analyzeVertexCache(ptr noundef %236, i64 noundef %238, i64 noundef %239, i32 noundef 16, i32 noundef 0, i32 noundef 0)
          to label %241 unwind label %346

241:                                              ; preds = %233
  %242 = getelementptr inbounds { i64, <2 x float> }, ptr %25, i32 0, i32 0
  %243 = extractvalue { i64, <2 x float> } %240, 0
  store i64 %243, ptr %242, align 4
  %244 = getelementptr inbounds { i64, <2 x float> }, ptr %25, i32 0, i32 1
  %245 = extractvalue { i64, <2 x float> } %240, 1
  store <2 x float> %245, ptr %244, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #9
  %246 = getelementptr inbounds [5 x i64], ptr %16, i64 0, i64 0
  %247 = load i64, ptr %246, align 16, !tbaa !11
  %248 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %20, i64 noundef %247) #9
  %249 = getelementptr inbounds [5 x i64], ptr %17, i64 0, i64 0
  %250 = load i64, ptr %249, align 16, !tbaa !11
  %251 = call noundef i64 @_ZNKSt6vectorI6VertexSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %23) #9
  %252 = invoke i64 @meshopt_analyzeVertexFetch(ptr noundef %248, i64 noundef %250, i64 noundef %251, i64 noundef 32)
          to label %253 unwind label %350

253:                                              ; preds = %241
  store i64 %252, ptr %26, align 4
  call void @llvm.lifetime.start.p0(i64 16, ptr %27) #9
  %254 = getelementptr inbounds [5 x i64], ptr %16, i64 0, i64 4
  %255 = load i64, ptr %254, align 16, !tbaa !11
  %256 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %20, i64 noundef %255) #9
  %257 = getelementptr inbounds [5 x i64], ptr %17, i64 0, i64 4
  %258 = load i64, ptr %257, align 16, !tbaa !11
  %259 = call noundef i64 @_ZNKSt6vectorI6VertexSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %23) #9
  %260 = invoke { i64, <2 x float> } @meshopt_analyzeVertexCache(ptr noundef %256, i64 noundef %258, i64 noundef %259, i32 noundef 16, i32 noundef 0, i32 noundef 0)
          to label %261 unwind label %354

261:                                              ; preds = %253
  %262 = getelementptr inbounds { i64, <2 x float> }, ptr %27, i32 0, i32 0
  %263 = extractvalue { i64, <2 x float> } %260, 0
  store i64 %263, ptr %262, align 4
  %264 = getelementptr inbounds { i64, <2 x float> }, ptr %27, i32 0, i32 1
  %265 = extractvalue { i64, <2 x float> } %260, 1
  store <2 x float> %265, ptr %264, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #9
  %266 = getelementptr inbounds [5 x i64], ptr %16, i64 0, i64 4
  %267 = load i64, ptr %266, align 16, !tbaa !11
  %268 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %20, i64 noundef %267) #9
  %269 = getelementptr inbounds [5 x i64], ptr %17, i64 0, i64 4
  %270 = load i64, ptr %269, align 16, !tbaa !11
  %271 = call noundef i64 @_ZNKSt6vectorI6VertexSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %23) #9
  %272 = invoke i64 @meshopt_analyzeVertexFetch(ptr noundef %268, i64 noundef %270, i64 noundef %271, i64 noundef 32)
          to label %273 unwind label %358

273:                                              ; preds = %261
  store i64 %272, ptr %28, align 4
  call void @llvm.lifetime.start.p0(i64 24, ptr %29) #9
  %274 = call noundef i64 @_ZNKSt6vectorI6VertexSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %23) #9
  call void @llvm.lifetime.start.p0(i64 1, ptr %30) #9
  call void @_ZNSaI15PackedVertexOctEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %30) #9
  invoke void @_ZNSt6vectorI15PackedVertexOctSaIS0_EEC2EmRKS1_(ptr noundef nonnull align 8 dereferenceable(24) %29, i64 noundef %274, ptr noundef nonnull align 1 dereferenceable(1) %30)
          to label %275 unwind label %362

275:                                              ; preds = %273
  call void @_ZNSt15__new_allocatorI15PackedVertexOctED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %30) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr %30) #9
  invoke void @_Z8packMeshRSt6vectorI15PackedVertexOctSaIS0_EERKS_I6VertexSaIS4_EE(ptr noundef nonnull align 8 dereferenceable(24) %29, ptr noundef nonnull align 8 dereferenceable(24) %23)
          to label %276 unwind label %366

276:                                              ; preds = %275
  call void @llvm.lifetime.start.p0(i64 24, ptr %31) #9
  %277 = call noundef i64 @_ZNKSt6vectorI6VertexSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %23) #9
  %278 = invoke i64 @meshopt_encodeVertexBufferBound(i64 noundef %277, i64 noundef 12)
          to label %279 unwind label %370

279:                                              ; preds = %276
  call void @llvm.lifetime.start.p0(i64 1, ptr %32) #9
  call void @_ZNSaIhEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %32) #9
  invoke void @_ZNSt6vectorIhSaIhEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %31, i64 noundef %278, ptr noundef nonnull align 1 dereferenceable(1) %32)
          to label %280 unwind label %374

280:                                              ; preds = %279
  call void @_ZNSt15__new_allocatorIhED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %32) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr %32) #9
  %281 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorIhSaIhEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %31, i64 noundef 0) #9
  %282 = call noundef i64 @_ZNKSt6vectorIhSaIhEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %31) #9
  %283 = call noundef nonnull align 2 dereferenceable(12) ptr @_ZNSt6vectorI15PackedVertexOctSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %29, i64 noundef 0) #9
  %284 = call noundef i64 @_ZNKSt6vectorI6VertexSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %23) #9
  %285 = invoke i64 @meshopt_encodeVertexBuffer(ptr noundef %281, i64 noundef %282, ptr noundef %283, i64 noundef %284, i64 noundef 12)
          to label %286 unwind label %378

286:                                              ; preds = %280
  invoke void @_ZNSt6vectorIhSaIhEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %31, i64 noundef %285)
          to label %287 unwind label %378

287:                                              ; preds = %286
  call void @llvm.lifetime.start.p0(i64 24, ptr %33) #9
  %288 = call noundef i64 @_ZNKSt6vectorIjSaIjEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %20) #9
  %289 = call noundef i64 @_ZNKSt6vectorI6VertexSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %23) #9
  %290 = invoke i64 @meshopt_encodeIndexBufferBound(i64 noundef %288, i64 noundef %289)
          to label %291 unwind label %382

291:                                              ; preds = %287
  call void @llvm.lifetime.start.p0(i64 1, ptr %34) #9
  call void @_ZNSaIhEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %34) #9
  invoke void @_ZNSt6vectorIhSaIhEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %33, i64 noundef %290, ptr noundef nonnull align 1 dereferenceable(1) %34)
          to label %292 unwind label %386

292:                                              ; preds = %291
  call void @_ZNSt15__new_allocatorIhED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %34) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr %34) #9
  %293 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorIhSaIhEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %33, i64 noundef 0) #9
  %294 = call noundef i64 @_ZNKSt6vectorIhSaIhEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %33) #9
  %295 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %20, i64 noundef 0) #9
  %296 = call noundef i64 @_ZNKSt6vectorIjSaIjEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %20) #9
  %297 = invoke i64 @meshopt_encodeIndexBuffer(ptr noundef %293, i64 noundef %294, ptr noundef %295, i64 noundef %296)
          to label %298 unwind label %390

298:                                              ; preds = %292
  invoke void @_ZNSt6vectorIhSaIhEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %33, i64 noundef %297)
          to label %299 unwind label %390

299:                                              ; preds = %298
  %300 = getelementptr inbounds %struct.meshopt_VertexCacheStatistics, ptr %25, i32 0, i32 2
  %301 = load float, ptr %300, align 4, !tbaa !22
  %302 = fpext float %301 to double
  %303 = getelementptr inbounds %struct.meshopt_VertexCacheStatistics, ptr %27, i32 0, i32 2
  %304 = load float, ptr %303, align 4, !tbaa !22
  %305 = fpext float %304 to double
  %306 = getelementptr inbounds %struct.meshopt_VertexFetchStatistics, ptr %26, i32 0, i32 1
  %307 = load float, ptr %306, align 4, !tbaa !24
  %308 = fpext float %307 to double
  %309 = getelementptr inbounds %struct.meshopt_VertexFetchStatistics, ptr %28, i32 0, i32 1
  %310 = load float, ptr %309, align 4, !tbaa !24
  %311 = fpext float %310 to double
  %312 = call noundef i64 @_ZNKSt6vectorIhSaIhEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %31) #9
  %313 = uitofp i64 %312 to double
  %314 = call noundef i64 @_ZNKSt6vectorI6VertexSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %23) #9
  %315 = uitofp i64 %314 to double
  %316 = fdiv double %313, %315
  %317 = fmul double %316, 8.000000e+00
  %318 = call noundef i64 @_ZNKSt6vectorIhSaIhEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %33) #9
  %319 = uitofp i64 %318 to double
  %320 = call noundef i64 @_ZNKSt6vectorIjSaIjEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %20) #9
  %321 = udiv i64 %320, 3
  %322 = uitofp i64 %321 to double
  %323 = fdiv double %319, %322
  %324 = fmul double %323, 8.000000e+00
  %325 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.13, ptr noundef @.str.14, double noundef %302, double noundef %305, double noundef %308, double noundef %311, double noundef %317, double noundef %324)
          to label %326 unwind label %390

326:                                              ; preds = %299
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %33) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %33) #9
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %31) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %31) #9
  call void @_ZNSt6vectorI15PackedVertexOctSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %29) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %29) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %27) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %25) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #9
  call void @_ZNSt6vectorI6VertexSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %23) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %23) #9
  call void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %20) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %20) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #9
  call void @llvm.lifetime.end.p0(i64 40, ptr %17) #9
  call void @llvm.lifetime.end.p0(i64 40, ptr %16) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #9
  %327 = getelementptr inbounds [5 x %"class.std::vector.0"], ptr %4, i32 0, i32 0
  %328 = getelementptr inbounds %"class.std::vector.0", ptr %327, i64 5
  br label %329

329:                                              ; preds = %329, %326
  %330 = phi ptr [ %328, %326 ], [ %331, %329 ]
  %331 = getelementptr inbounds %"class.std::vector.0", ptr %330, i64 -1
  call void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %331) #9
  %332 = icmp eq ptr %331, %327
  br i1 %332, label %333, label %329

333:                                              ; preds = %329
  call void @llvm.lifetime.end.p0(i64 120, ptr %4) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #9
  ret void

334:                                              ; preds = %204
  %335 = landingpad { ptr, i32 }
          cleanup
  %336 = extractvalue { ptr, i32 } %335, 0
  store ptr %336, ptr %5, align 8
  %337 = extractvalue { ptr, i32 } %335, 1
  store i32 %337, ptr %6, align 4
  br label %405

338:                                              ; preds = %207
  %339 = landingpad { ptr, i32 }
          cleanup
  %340 = extractvalue { ptr, i32 } %339, 0
  store ptr %340, ptr %5, align 8
  %341 = extractvalue { ptr, i32 } %339, 1
  store i32 %341, ptr %6, align 4
  br label %404

342:                                              ; preds = %214
  %343 = landingpad { ptr, i32 }
          cleanup
  %344 = extractvalue { ptr, i32 } %343, 0
  store ptr %344, ptr %5, align 8
  %345 = extractvalue { ptr, i32 } %343, 1
  store i32 %345, ptr %6, align 4
  br label %403

346:                                              ; preds = %233
  %347 = landingpad { ptr, i32 }
          cleanup
  %348 = extractvalue { ptr, i32 } %347, 0
  store ptr %348, ptr %5, align 8
  %349 = extractvalue { ptr, i32 } %347, 1
  store i32 %349, ptr %6, align 4
  br label %402

350:                                              ; preds = %241
  %351 = landingpad { ptr, i32 }
          cleanup
  %352 = extractvalue { ptr, i32 } %351, 0
  store ptr %352, ptr %5, align 8
  %353 = extractvalue { ptr, i32 } %351, 1
  store i32 %353, ptr %6, align 4
  br label %401

354:                                              ; preds = %253
  %355 = landingpad { ptr, i32 }
          cleanup
  %356 = extractvalue { ptr, i32 } %355, 0
  store ptr %356, ptr %5, align 8
  %357 = extractvalue { ptr, i32 } %355, 1
  store i32 %357, ptr %6, align 4
  br label %400

358:                                              ; preds = %261
  %359 = landingpad { ptr, i32 }
          cleanup
  %360 = extractvalue { ptr, i32 } %359, 0
  store ptr %360, ptr %5, align 8
  %361 = extractvalue { ptr, i32 } %359, 1
  store i32 %361, ptr %6, align 4
  br label %399

362:                                              ; preds = %273
  %363 = landingpad { ptr, i32 }
          cleanup
  %364 = extractvalue { ptr, i32 } %363, 0
  store ptr %364, ptr %5, align 8
  %365 = extractvalue { ptr, i32 } %363, 1
  store i32 %365, ptr %6, align 4
  call void @_ZNSt15__new_allocatorI15PackedVertexOctED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %30) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr %30) #9
  br label %398

366:                                              ; preds = %275
  %367 = landingpad { ptr, i32 }
          cleanup
  %368 = extractvalue { ptr, i32 } %367, 0
  store ptr %368, ptr %5, align 8
  %369 = extractvalue { ptr, i32 } %367, 1
  store i32 %369, ptr %6, align 4
  br label %397

370:                                              ; preds = %276
  %371 = landingpad { ptr, i32 }
          cleanup
  %372 = extractvalue { ptr, i32 } %371, 0
  store ptr %372, ptr %5, align 8
  %373 = extractvalue { ptr, i32 } %371, 1
  store i32 %373, ptr %6, align 4
  br label %396

374:                                              ; preds = %279
  %375 = landingpad { ptr, i32 }
          cleanup
  %376 = extractvalue { ptr, i32 } %375, 0
  store ptr %376, ptr %5, align 8
  %377 = extractvalue { ptr, i32 } %375, 1
  store i32 %377, ptr %6, align 4
  call void @_ZNSt15__new_allocatorIhED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %32) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr %32) #9
  br label %396

378:                                              ; preds = %286, %280
  %379 = landingpad { ptr, i32 }
          cleanup
  %380 = extractvalue { ptr, i32 } %379, 0
  store ptr %380, ptr %5, align 8
  %381 = extractvalue { ptr, i32 } %379, 1
  store i32 %381, ptr %6, align 4
  br label %395

382:                                              ; preds = %287
  %383 = landingpad { ptr, i32 }
          cleanup
  %384 = extractvalue { ptr, i32 } %383, 0
  store ptr %384, ptr %5, align 8
  %385 = extractvalue { ptr, i32 } %383, 1
  store i32 %385, ptr %6, align 4
  br label %394

386:                                              ; preds = %291
  %387 = landingpad { ptr, i32 }
          cleanup
  %388 = extractvalue { ptr, i32 } %387, 0
  store ptr %388, ptr %5, align 8
  %389 = extractvalue { ptr, i32 } %387, 1
  store i32 %389, ptr %6, align 4
  call void @_ZNSt15__new_allocatorIhED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %34) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr %34) #9
  br label %394

390:                                              ; preds = %299, %298, %292
  %391 = landingpad { ptr, i32 }
          cleanup
  %392 = extractvalue { ptr, i32 } %391, 0
  store ptr %392, ptr %5, align 8
  %393 = extractvalue { ptr, i32 } %391, 1
  store i32 %393, ptr %6, align 4
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %33) #9
  br label %394

394:                                              ; preds = %390, %386, %382
  call void @llvm.lifetime.end.p0(i64 24, ptr %33) #9
  br label %395

395:                                              ; preds = %394, %378
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %31) #9
  br label %396

396:                                              ; preds = %395, %374, %370
  call void @llvm.lifetime.end.p0(i64 24, ptr %31) #9
  br label %397

397:                                              ; preds = %396, %366
  call void @_ZNSt6vectorI15PackedVertexOctSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %29) #9
  br label %398

398:                                              ; preds = %397, %362
  call void @llvm.lifetime.end.p0(i64 24, ptr %29) #9
  br label %399

399:                                              ; preds = %398, %358
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #9
  br label %400

400:                                              ; preds = %399, %354
  call void @llvm.lifetime.end.p0(i64 16, ptr %27) #9
  br label %401

401:                                              ; preds = %400, %350
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #9
  br label %402

402:                                              ; preds = %401, %346
  call void @llvm.lifetime.end.p0(i64 16, ptr %25) #9
  br label %403

403:                                              ; preds = %402, %342
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #9
  br label %404

404:                                              ; preds = %403, %338
  call void @_ZNSt6vectorI6VertexSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %23) #9
  br label %405

405:                                              ; preds = %404, %334
  call void @llvm.lifetime.end.p0(i64 24, ptr %23) #9
  call void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %20) #9
  br label %406

406:                                              ; preds = %405, %185
  call void @llvm.lifetime.end.p0(i64 24, ptr %20) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #9
  call void @llvm.lifetime.end.p0(i64 40, ptr %17) #9
  call void @llvm.lifetime.end.p0(i64 40, ptr %16) #9
  br label %407

407:                                              ; preds = %406, %148
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #9
  br label %408

408:                                              ; preds = %407, %108, %52
  %409 = getelementptr inbounds [5 x %"class.std::vector.0"], ptr %4, i32 0, i32 0
  %410 = getelementptr inbounds %"class.std::vector.0", ptr %409, i64 5
  br label %411

411:                                              ; preds = %411, %408
  %412 = phi ptr [ %410, %408 ], [ %413, %411 ]
  %413 = getelementptr inbounds %"class.std::vector.0", ptr %412, i64 -1
  call void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %413) #9
  %414 = icmp eq ptr %413, %409
  br i1 %414, label %415, label %411

415:                                              ; preds = %411
  call void @llvm.lifetime.end.p0(i64 120, ptr %4) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #9
  br label %416

416:                                              ; preds = %415
  %417 = load ptr, ptr %5, align 8
  %418 = load i32, ptr %6, align 4
  %419 = insertvalue { ptr, i32 } poison, ptr %417, 0
  %420 = insertvalue { ptr, i32 } %419, i32 %418, 1
  resume { ptr, i32 } %420
}

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

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

; Function Attrs: nounwind
declare float @powf(float noundef, float noundef) #7

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i64 @_Z16meshopt_simplifyIjEmPT_PKS0_mPKfmmmfjPf(ptr noundef, ptr noundef, i64 noundef, ptr noundef, i64 noundef, i64 noundef, i64 noundef, float noundef, i32 noundef, ptr noundef) #8

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

declare { i64, <2 x float> } @meshopt_analyzeVertexCache(ptr noundef, i64 noundef, i64 noundef, i32 noundef, i32 noundef, i32 noundef) #2

declare i64 @meshopt_analyzeVertexFetch(ptr noundef, i64 noundef, i64 noundef, i64 noundef) #2

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

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

declare i64 @meshopt_encodeVertexBufferBound(i64 noundef, i64 noundef) #2

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

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

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

declare i64 @meshopt_encodeVertexBuffer(ptr noundef, i64 noundef, ptr noundef, i64 noundef, i64 noundef) #2

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

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

declare i64 @meshopt_encodeIndexBufferBound(i64 noundef, i64 noundef) #2

declare i64 @meshopt_encodeIndexBuffer(ptr noundef, i64 noundef, ptr noundef, i64 noundef) #2

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIhED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) 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 = { "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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { mustprogress uwtable "min-legal-vector-width"="64" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #8 = { 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 #9 = { 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 = !{!"double", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"float", !7, i64 0}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = distinct !{!17, !16}
!18 = !{!19, !19, i64 0}
!19 = !{!"int", !7, i64 0}
!20 = distinct !{!20, !16}
!21 = distinct !{!21, !16}
!22 = !{!23, !14, i64 8}
!23 = !{!"_ZTS29meshopt_VertexCacheStatistics", !19, i64 0, !19, i64 4, !14, i64 8, !14, i64 12}
!24 = !{!25, !14, i64 4}
!25 = !{!"_ZTS29meshopt_VertexFetchStatistics", !19, i64 0, !14, i64 4}


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

%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator.2" = type { i8 }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<Vertex, std::allocator<Vertex>>::_Vector_impl" }
%"struct.std::_Vector_base<Vertex, std::allocator<Vertex>>::_Vector_impl" = type { %"struct.std::_Vector_base<Vertex, std::allocator<Vertex>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Vertex, std::allocator<Vertex>>::_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<PackedVertexOct, std::allocator<PackedVertexOct>>::_Vector_impl" }
%"struct.std::_Vector_base<PackedVertexOct, std::allocator<PackedVertexOct>>::_Vector_impl" = type { %"struct.std::_Vector_base<PackedVertexOct, std::allocator<PackedVertexOct>>::_Vector_impl_data" }
%"struct.std::_Vector_base<PackedVertexOct, std::allocator<PackedVertexOct>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator.17" = type { i8 }
%"class.std::vector.20" = type { %"struct.std::_Vector_base.21" }
%"struct.std::_Vector_base.21" = type { %"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator.22" = type { i8 }

@.str.11 = external hidden unnamed_addr constant [95 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [85 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [1 x i8], align 1

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef double @_Z9timestampv() local_unnamed_addr #1

; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIjSaIjEE4sizeEv(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(4) ptr @_ZNKSt6vectorIjSaIjEEixEm(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(32) ptr @_ZNKSt6vectorI6VertexSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #1 align 2

declare void @meshopt_optimizeVertexCache(ptr noundef, ptr noundef, i64 noundef, i64 noundef) local_unnamed_addr #5

declare void @meshopt_optimizeOverdraw(ptr noundef, ptr noundef, i64 noundef, ptr noundef, i64 noundef, i64 noundef, float noundef) local_unnamed_addr #5

declare i64 @meshopt_optimizeVertexFetch(ptr noundef, ptr noundef, i64 noundef, ptr noundef, i64 noundef, i64 noundef) local_unnamed_addr #5

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_Z16simplifyCompleteRK4Mesh(ptr noundef nonnull align 8 dereferenceable(48) %0) local_unnamed_addr #6 personality ptr @__gxx_personality_v0 {
  %2 = alloca [5 x %"class.std::vector.0"], align 16
  %3 = alloca %"class.std::vector.0", align 8
  %4 = alloca %"class.std::allocator.2", align 1
  %5 = alloca %"class.std::vector", align 8
  %6 = alloca %"class.std::vector.15", align 8
  %7 = alloca %"class.std::allocator.17", align 1
  %8 = alloca %"class.std::vector.20", align 8
  %9 = alloca %"class.std::allocator.22", align 1
  %10 = alloca %"class.std::vector.20", align 8
  %11 = alloca %"class.std::allocator.22", align 1
  %12 = tail call noundef double @_Z9timestampv()
  call void @llvm.lifetime.start.p0(i64 120, ptr nonnull %2) #8
  call void @_ZNSt6vectorIjSaIjEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #8
  %.ptr.1 = getelementptr inbounds i8, ptr %2, i64 24
  call void @_ZNSt6vectorIjSaIjEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.1) #8
  %.ptr.2 = getelementptr inbounds i8, ptr %2, i64 48
  call void @_ZNSt6vectorIjSaIjEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.2) #8
  %.ptr.3 = getelementptr inbounds i8, ptr %2, i64 72
  call void @_ZNSt6vectorIjSaIjEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.3) #8
  %.ptr.4 = getelementptr inbounds i8, ptr %2, i64 96
  call void @_ZNSt6vectorIjSaIjEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.4) #8
  %13 = getelementptr inbounds i8, ptr %0, i64 24
  %14 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIjSaIjEEaSERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 8 dereferenceable(24) %13)
          to label %.preheader.preheader unwind label %23

.preheader.preheader:                             ; preds = %1
  %15 = call noundef i64 @_ZNKSt6vectorIjSaIjEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %13) #8
  %16 = uitofp i64 %15 to float
  %17 = fmul float %16, 0x3FE6666660000000
  %18 = fptoui float %17 to i64
  %.fr = freeze i64 %18
  %19 = urem i64 %.fr, 3
  %20 = sub nuw i64 %.fr, %19
  %21 = call noundef i64 @_ZNKSt6vectorIjSaIjEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #8
  %22 = icmp ult i64 %21, %20
  br i1 %22, label %25, label %27

23:                                               ; preds = %1
  %24 = landingpad { ptr, i32 }
          cleanup
  br label %317

25:                                               ; preds = %.preheader.preheader
  %26 = call noundef i64 @_ZNKSt6vectorIjSaIjEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #8
  br label %27

27:                                               ; preds = %25, %.preheader.preheader
  %.074 = phi i64 [ %26, %25 ], [ %20, %.preheader.preheader ]
  %28 = call noundef i64 @_ZNKSt6vectorIjSaIjEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #8
  invoke void @_ZNSt6vectorIjSaIjEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.1, i64 noundef %28)
          to label %29 unwind label %103

29:                                               ; preds = %27
  %30 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.1, i64 noundef 0) #8
  %31 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef 0) #8
  %32 = call noundef i64 @_ZNKSt6vectorIjSaIjEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #8
  %33 = call noundef nonnull align 4 dereferenceable(32) ptr @_ZNKSt6vectorI6VertexSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef 0) #8
  %34 = call noundef i64 @_ZNKSt6vectorI6VertexSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #8
  %35 = invoke noundef i64 @_Z16meshopt_simplifyIjEmPT_PKS0_mPKfmmmfjPf(ptr noundef nonnull %30, ptr noundef nonnull %31, i64 noundef %32, ptr noundef nonnull %33, i64 noundef %34, i64 noundef 32, i64 noundef %.074, float noundef 0x3F847AE140000000, i32 noundef 0, ptr noundef null)
          to label %36 unwind label %103

36:                                               ; preds = %29
  invoke void @_ZNSt6vectorIjSaIjEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.1, i64 noundef %35)
          to label %.preheader.1 unwind label %103

.preheader.1:                                     ; preds = %36
  %37 = call noundef i64 @_ZNKSt6vectorIjSaIjEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %13) #8
  %38 = uitofp i64 %37 to float
  %39 = fmul float %38, 0x3FDF5C28E0000000
  %40 = fptoui float %39 to i64
  %.fr.1 = freeze i64 %40
  %41 = urem i64 %.fr.1, 3
  %42 = sub nuw i64 %.fr.1, %41
  %43 = call noundef i64 @_ZNKSt6vectorIjSaIjEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.1) #8
  %44 = icmp ult i64 %43, %42
  br i1 %44, label %45, label %47

45:                                               ; preds = %.preheader.1
  %46 = call noundef i64 @_ZNKSt6vectorIjSaIjEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.1) #8
  br label %47

47:                                               ; preds = %45, %.preheader.1
  %.074.1 = phi i64 [ %46, %45 ], [ %42, %.preheader.1 ]
  %48 = call noundef i64 @_ZNKSt6vectorIjSaIjEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.1) #8
  invoke void @_ZNSt6vectorIjSaIjEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.2, i64 noundef %48)
          to label %49 unwind label %103

49:                                               ; preds = %47
  %50 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.2, i64 noundef 0) #8
  %51 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.1, i64 noundef 0) #8
  %52 = call noundef i64 @_ZNKSt6vectorIjSaIjEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.1) #8
  %53 = call noundef nonnull align 4 dereferenceable(32) ptr @_ZNKSt6vectorI6VertexSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef 0) #8
  %54 = call noundef i64 @_ZNKSt6vectorI6VertexSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #8
  %55 = invoke noundef i64 @_Z16meshopt_simplifyIjEmPT_PKS0_mPKfmmmfjPf(ptr noundef nonnull %50, ptr noundef nonnull %51, i64 noundef %52, ptr noundef nonnull %53, i64 noundef %54, i64 noundef 32, i64 noundef %.074.1, float noundef 0x3F847AE140000000, i32 noundef 0, ptr noundef null)
          to label %56 unwind label %103

56:                                               ; preds = %49
  invoke void @_ZNSt6vectorIjSaIjEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.2, i64 noundef %55)
          to label %.preheader.2 unwind label %103

.preheader.2:                                     ; preds = %56
  %57 = call noundef i64 @_ZNKSt6vectorIjSaIjEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %13) #8
  %58 = uitofp i64 %57 to float
  %59 = fmul float %58, 0x3FD5F3B640000000
  %60 = fptoui float %59 to i64
  %.fr.2 = freeze i64 %60
  %61 = urem i64 %.fr.2, 3
  %62 = sub nuw i64 %.fr.2, %61
  %63 = call noundef i64 @_ZNKSt6vectorIjSaIjEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.2) #8
  %64 = icmp ult i64 %63, %62
  br i1 %64, label %65, label %67

65:                                               ; preds = %.preheader.2
  %66 = call noundef i64 @_ZNKSt6vectorIjSaIjEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.2) #8
  br label %67

67:                                               ; preds = %65, %.preheader.2
  %.074.2 = phi i64 [ %66, %65 ], [ %62, %.preheader.2 ]
  %68 = call noundef i64 @_ZNKSt6vectorIjSaIjEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.2) #8
  invoke void @_ZNSt6vectorIjSaIjEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.3, i64 noundef %68)
          to label %69 unwind label %103

69:                                               ; preds = %67
  %70 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.3, i64 noundef 0) #8
  %71 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.2, i64 noundef 0) #8
  %72 = call noundef i64 @_ZNKSt6vectorIjSaIjEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.2) #8
  %73 = call noundef nonnull align 4 dereferenceable(32) ptr @_ZNKSt6vectorI6VertexSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef 0) #8
  %74 = call noundef i64 @_ZNKSt6vectorI6VertexSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #8
  %75 = invoke noundef i64 @_Z16meshopt_simplifyIjEmPT_PKS0_mPKfmmmfjPf(ptr noundef nonnull %70, ptr noundef nonnull %71, i64 noundef %72, ptr noundef nonnull %73, i64 noundef %74, i64 noundef 32, i64 noundef %.074.2, float noundef 0x3F847AE140000000, i32 noundef 0, ptr noundef null)
          to label %76 unwind label %103

76:                                               ; preds = %69
  invoke void @_ZNSt6vectorIjSaIjEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.3, i64 noundef %75)
          to label %.preheader.3 unwind label %103

.preheader.3:                                     ; preds = %76
  %77 = call noundef i64 @_ZNKSt6vectorIjSaIjEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %13) #8
  %78 = uitofp i64 %77 to float
  %79 = fmul float %78, 0x3FCEBB98A0000000
  %80 = fptoui float %79 to i64
  %.fr.3 = freeze i64 %80
  %81 = urem i64 %.fr.3, 3
  %82 = sub nuw i64 %.fr.3, %81
  %83 = call noundef i64 @_ZNKSt6vectorIjSaIjEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.3) #8
  %84 = icmp ult i64 %83, %82
  br i1 %84, label %85, label %87

85:                                               ; preds = %.preheader.3
  %86 = call noundef i64 @_ZNKSt6vectorIjSaIjEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.3) #8
  br label %87

87:                                               ; preds = %85, %.preheader.3
  %.074.3 = phi i64 [ %86, %85 ], [ %82, %.preheader.3 ]
  %88 = call noundef i64 @_ZNKSt6vectorIjSaIjEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.3) #8
  invoke void @_ZNSt6vectorIjSaIjEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.4, i64 noundef %88)
          to label %89 unwind label %103

89:                                               ; preds = %87
  %90 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.4, i64 noundef 0) #8
  %91 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.3, i64 noundef 0) #8
  %92 = call noundef i64 @_ZNKSt6vectorIjSaIjEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.3) #8
  %93 = call noundef nonnull align 4 dereferenceable(32) ptr @_ZNKSt6vectorI6VertexSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef 0) #8
  %94 = call noundef i64 @_ZNKSt6vectorI6VertexSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #8
  %95 = invoke noundef i64 @_Z16meshopt_simplifyIjEmPT_PKS0_mPKfmmmfjPf(ptr noundef nonnull %90, ptr noundef nonnull %91, i64 noundef %92, ptr noundef nonnull %93, i64 noundef %94, i64 noundef 32, i64 noundef %.074.3, float noundef 0x3F847AE140000000, i32 noundef 0, ptr noundef null)
          to label %96 unwind label %103

96:                                               ; preds = %89
  invoke void @_ZNSt6vectorIjSaIjEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.4, i64 noundef %95)
          to label %97 unwind label %103

97:                                               ; preds = %96
  %98 = call noundef double @_Z9timestampv()
  %99 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef 0) #8
  %100 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef 0) #8
  %101 = call noundef i64 @_ZNKSt6vectorIjSaIjEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #8
  %102 = call noundef i64 @_ZNKSt6vectorI6VertexSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #8
  invoke void @meshopt_optimizeVertexCache(ptr noundef nonnull %99, ptr noundef nonnull %100, i64 noundef %101, i64 noundef %102)
          to label %105 unwind label %170

103:                                              ; preds = %96, %89, %87, %76, %69, %67, %56, %49, %47, %36, %29, %27
  %104 = landingpad { ptr, i32 }
          cleanup
  br label %317

105:                                              ; preds = %97
  %106 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef 0) #8
  %107 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef 0) #8
  %108 = call noundef i64 @_ZNKSt6vectorIjSaIjEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #8
  %109 = call noundef nonnull align 4 dereferenceable(32) ptr @_ZNKSt6vectorI6VertexSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef 0) #8
  %110 = call noundef i64 @_ZNKSt6vectorI6VertexSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #8
  invoke void @meshopt_optimizeOverdraw(ptr noundef nonnull %106, ptr noundef nonnull %107, i64 noundef %108, ptr noundef nonnull %109, i64 noundef %110, i64 noundef 32, float noundef 1.000000e+00)
          to label %111 unwind label %170

111:                                              ; preds = %105
  %112 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.1, i64 noundef 0) #8
  %113 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.1, i64 noundef 0) #8
  %114 = call noundef i64 @_ZNKSt6vectorIjSaIjEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.1) #8
  %115 = call noundef i64 @_ZNKSt6vectorI6VertexSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #8
  invoke void @meshopt_optimizeVertexCache(ptr noundef nonnull %112, ptr noundef nonnull %113, i64 noundef %114, i64 noundef %115)
          to label %116 unwind label %170

116:                                              ; preds = %111
  %117 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.1, i64 noundef 0) #8
  %118 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.1, i64 noundef 0) #8
  %119 = call noundef i64 @_ZNKSt6vectorIjSaIjEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.1) #8
  %120 = call noundef nonnull align 4 dereferenceable(32) ptr @_ZNKSt6vectorI6VertexSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef 0) #8
  %121 = call noundef i64 @_ZNKSt6vectorI6VertexSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #8
  invoke void @meshopt_optimizeOverdraw(ptr noundef nonnull %117, ptr noundef nonnull %118, i64 noundef %119, ptr noundef nonnull %120, i64 noundef %121, i64 noundef 32, float noundef 1.000000e+00)
          to label %122 unwind label %170

122:                                              ; preds = %116
  %123 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.2, i64 noundef 0) #8
  %124 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.2, i64 noundef 0) #8
  %125 = call noundef i64 @_ZNKSt6vectorIjSaIjEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.2) #8
  %126 = call noundef i64 @_ZNKSt6vectorI6VertexSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #8
  invoke void @meshopt_optimizeVertexCache(ptr noundef nonnull %123, ptr noundef nonnull %124, i64 noundef %125, i64 noundef %126)
          to label %127 unwind label %170

127:                                              ; preds = %122
  %128 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.2, i64 noundef 0) #8
  %129 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.2, i64 noundef 0) #8
  %130 = call noundef i64 @_ZNKSt6vectorIjSaIjEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.2) #8
  %131 = call noundef nonnull align 4 dereferenceable(32) ptr @_ZNKSt6vectorI6VertexSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef 0) #8
  %132 = call noundef i64 @_ZNKSt6vectorI6VertexSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #8
  invoke void @meshopt_optimizeOverdraw(ptr noundef nonnull %128, ptr noundef nonnull %129, i64 noundef %130, ptr noundef nonnull %131, i64 noundef %132, i64 noundef 32, float noundef 1.000000e+00)
          to label %133 unwind label %170

133:                                              ; preds = %127
  %134 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.3, i64 noundef 0) #8
  %135 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.3, i64 noundef 0) #8
  %136 = call noundef i64 @_ZNKSt6vectorIjSaIjEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.3) #8
  %137 = call noundef i64 @_ZNKSt6vectorI6VertexSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #8
  invoke void @meshopt_optimizeVertexCache(ptr noundef nonnull %134, ptr noundef nonnull %135, i64 noundef %136, i64 noundef %137)
          to label %138 unwind label %170

138:                                              ; preds = %133
  %139 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.3, i64 noundef 0) #8
  %140 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.3, i64 noundef 0) #8
  %141 = call noundef i64 @_ZNKSt6vectorIjSaIjEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.3) #8
  %142 = call noundef nonnull align 4 dereferenceable(32) ptr @_ZNKSt6vectorI6VertexSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef 0) #8
  %143 = call noundef i64 @_ZNKSt6vectorI6VertexSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #8
  invoke void @meshopt_optimizeOverdraw(ptr noundef nonnull %139, ptr noundef nonnull %140, i64 noundef %141, ptr noundef nonnull %142, i64 noundef %143, i64 noundef 32, float noundef 1.000000e+00)
          to label %144 unwind label %170

144:                                              ; preds = %138
  %145 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.4, i64 noundef 0) #8
  %146 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.4, i64 noundef 0) #8
  %147 = call noundef i64 @_ZNKSt6vectorIjSaIjEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.4) #8
  %148 = call noundef i64 @_ZNKSt6vectorI6VertexSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #8
  invoke void @meshopt_optimizeVertexCache(ptr noundef nonnull %145, ptr noundef nonnull %146, i64 noundef %147, i64 noundef %148)
          to label %149 unwind label %170

149:                                              ; preds = %144
  %150 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.4, i64 noundef 0) #8
  %151 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.4, i64 noundef 0) #8
  %152 = call noundef i64 @_ZNKSt6vectorIjSaIjEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.4) #8
  %153 = call noundef nonnull align 4 dereferenceable(32) ptr @_ZNKSt6vectorI6VertexSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef 0) #8
  %154 = call noundef i64 @_ZNKSt6vectorI6VertexSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #8
  invoke void @meshopt_optimizeOverdraw(ptr noundef nonnull %150, ptr noundef nonnull %151, i64 noundef %152, ptr noundef nonnull %153, i64 noundef %154, i64 noundef 32, float noundef 1.000000e+00)
          to label %155 unwind label %170

155:                                              ; preds = %149
  %156 = call noundef i64 @_ZNKSt6vectorIjSaIjEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.4) #8
  %157 = call noundef i64 @_ZNKSt6vectorIjSaIjEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.4) #8
  %158 = call noundef i64 @_ZNKSt6vectorIjSaIjEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.3) #8
  %159 = call noundef i64 @_ZNKSt6vectorIjSaIjEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.3) #8
  %160 = add i64 %159, %157
  %161 = call noundef i64 @_ZNKSt6vectorIjSaIjEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.2) #8
  %162 = call noundef i64 @_ZNKSt6vectorIjSaIjEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.2) #8
  %163 = add i64 %162, %160
  %164 = call noundef i64 @_ZNKSt6vectorIjSaIjEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.1) #8
  %165 = call noundef i64 @_ZNKSt6vectorIjSaIjEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.1) #8
  %166 = add i64 %165, %163
  %167 = call noundef i64 @_ZNKSt6vectorIjSaIjEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #8
  %168 = call noundef i64 @_ZNKSt6vectorIjSaIjEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #8
  %169 = add i64 %168, %166
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %3) #8
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %4) #8
  call void @_ZNSaIjEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #8
  invoke void @_ZNSt6vectorIjSaIjEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %169, ptr noundef nonnull align 1 dereferenceable(1) %4)
          to label %172 unwind label %193

170:                                              ; preds = %149, %144, %138, %133, %127, %122, %116, %111, %105, %97
  %171 = landingpad { ptr, i32 }
          cleanup
  br label %317

172:                                              ; preds = %155
  call void @_ZNSt15__new_allocatorIjED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #8
  %173 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %166) #8
  %174 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef 0) #8
  %175 = call noundef i64 @_ZNKSt6vectorIjSaIjEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #8
  %176 = shl i64 %175, 2
  call void @llvm.memcpy.p0.p0.i64(ptr nonnull align 4 %173, ptr nonnull align 4 %174, i64 %176, i1 false)
  %177 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %163) #8
  %178 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.1, i64 noundef 0) #8
  %179 = call noundef i64 @_ZNKSt6vectorIjSaIjEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.1) #8
  %180 = shl i64 %179, 2
  call void @llvm.memcpy.p0.p0.i64(ptr nonnull align 4 %177, ptr nonnull align 4 %178, i64 %180, i1 false)
  %181 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %160) #8
  %182 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.2, i64 noundef 0) #8
  %183 = call noundef i64 @_ZNKSt6vectorIjSaIjEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.2) #8
  %184 = shl i64 %183, 2
  call void @llvm.memcpy.p0.p0.i64(ptr nonnull align 4 %181, ptr nonnull align 4 %182, i64 %184, i1 false)
  %185 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %157) #8
  %186 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.3, i64 noundef 0) #8
  %187 = call noundef i64 @_ZNKSt6vectorIjSaIjEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.3) #8
  %188 = shl i64 %187, 2
  call void @llvm.memcpy.p0.p0.i64(ptr nonnull align 4 %185, ptr nonnull align 4 %186, i64 %188, i1 false)
  %189 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef 0) #8
  %190 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.4, i64 noundef 0) #8
  %191 = call noundef i64 @_ZNKSt6vectorIjSaIjEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.4) #8
  %192 = shl i64 %191, 2
  call void @llvm.memcpy.p0.p0.i64(ptr nonnull align 4 %189, ptr nonnull align 4 %190, i64 %192, i1 false)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %5) #8
  invoke void @_ZNSt6vectorI6VertexSaIS0_EEC2ERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %5, ptr noundef nonnull align 8 dereferenceable(24) %0)
          to label %195 unwind label %281

193:                                              ; preds = %155
  %194 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIjED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #8
  br label %316

195:                                              ; preds = %172
  %196 = call noundef nonnull align 4 dereferenceable(32) ptr @_ZNSt6vectorI6VertexSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef 0) #8
  %197 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef 0) #8
  %198 = call noundef i64 @_ZNKSt6vectorIjSaIjEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #8
  %199 = call noundef nonnull align 4 dereferenceable(32) ptr @_ZNSt6vectorI6VertexSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef 0) #8
  %200 = call noundef i64 @_ZNKSt6vectorI6VertexSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #8
  %201 = invoke i64 @meshopt_optimizeVertexFetch(ptr noundef nonnull %196, ptr noundef nonnull %197, i64 noundef %198, ptr noundef nonnull %199, i64 noundef %200, i64 noundef 32)
          to label %202 unwind label %283

202:                                              ; preds = %195
  %203 = call noundef double @_Z9timestampv()
  %204 = trunc i64 %167 to i32
  %205 = sdiv i32 %204, 3
  %206 = trunc i64 %156 to i32
  %207 = sdiv i32 %206, 3
  %208 = fsub double %98, %12
  %209 = fmul double %208, 1.000000e+03
  %210 = fsub double %203, %98
  %211 = fmul double %210, 1.000000e+03
  %212 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.11, ptr noundef nonnull @.str.12, i32 noundef %205, i32 noundef 5, i32 noundef %207, double noundef %209, double noundef %211)
  %213 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %166) #8
  %214 = call noundef i64 @_ZNKSt6vectorI6VertexSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #8
  %215 = invoke { i64, <2 x float> } @meshopt_analyzeVertexCache(ptr noundef nonnull %213, i64 noundef %167, i64 noundef %214, i32 noundef 16, i32 noundef 0, i32 noundef 0)
          to label %216 unwind label %285

216:                                              ; preds = %202
  %217 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %166) #8
  %218 = call noundef i64 @_ZNKSt6vectorI6VertexSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #8
  %219 = invoke i64 @meshopt_analyzeVertexFetch(ptr noundef nonnull %217, i64 noundef %167, i64 noundef %218, i64 noundef 32)
          to label %220 unwind label %287

220:                                              ; preds = %216
  %221 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef 0) #8
  %222 = call noundef i64 @_ZNKSt6vectorI6VertexSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #8
  %223 = invoke { i64, <2 x float> } @meshopt_analyzeVertexCache(ptr noundef nonnull %221, i64 noundef %156, i64 noundef %222, i32 noundef 16, i32 noundef 0, i32 noundef 0)
          to label %224 unwind label %289

224:                                              ; preds = %220
  %225 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef 0) #8
  %226 = call noundef i64 @_ZNKSt6vectorI6VertexSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #8
  %227 = invoke i64 @meshopt_analyzeVertexFetch(ptr noundef nonnull %225, i64 noundef %156, i64 noundef %226, i64 noundef 32)
          to label %228 unwind label %291

228:                                              ; preds = %224
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %6) #8
  %229 = call noundef i64 @_ZNKSt6vectorI6VertexSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #8
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %7) #8
  call void @_ZNSaI15PackedVertexOctEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #8
  invoke void @_ZNSt6vectorI15PackedVertexOctSaIS0_EEC2EmRKS1_(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %229, ptr noundef nonnull align 1 dereferenceable(1) %7)
          to label %230 unwind label %293

230:                                              ; preds = %228
  call void @_ZNSt15__new_allocatorI15PackedVertexOctED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %7) #8
  invoke void @_Z8packMeshRSt6vectorI15PackedVertexOctSaIS0_EERKS_I6VertexSaIS4_EE(ptr noundef nonnull align 8 dereferenceable(24) %6, ptr noundef nonnull align 8 dereferenceable(24) %5)
          to label %231 unwind label %295

231:                                              ; preds = %230
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %8) #8
  %232 = call noundef i64 @_ZNKSt6vectorI6VertexSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #8
  %233 = invoke i64 @meshopt_encodeVertexBufferBound(i64 noundef %232, i64 noundef 12)
          to label %234 unwind label %297

234:                                              ; preds = %231
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %9) #8
  call void @_ZNSaIhEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %9) #8
  invoke void @_ZNSt6vectorIhSaIhEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %233, ptr noundef nonnull align 1 dereferenceable(1) %9)
          to label %235 unwind label %299

235:                                              ; preds = %234
  call void @_ZNSt15__new_allocatorIhED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %9) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %9) #8
  %236 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorIhSaIhEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef 0) #8
  %237 = call noundef i64 @_ZNKSt6vectorIhSaIhEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %8) #8
  %238 = call noundef nonnull align 2 dereferenceable(12) ptr @_ZNSt6vectorI15PackedVertexOctSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef 0) #8
  %239 = call noundef i64 @_ZNKSt6vectorI6VertexSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #8
  %240 = invoke i64 @meshopt_encodeVertexBuffer(ptr noundef nonnull %236, i64 noundef %237, ptr noundef nonnull %238, i64 noundef %239, i64 noundef 12)
          to label %241 unwind label %301

241:                                              ; preds = %235
  invoke void @_ZNSt6vectorIhSaIhEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %240)
          to label %242 unwind label %301

242:                                              ; preds = %241
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %10) #8
  %243 = call noundef i64 @_ZNKSt6vectorIjSaIjEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #8
  %244 = call noundef i64 @_ZNKSt6vectorI6VertexSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #8
  %245 = invoke i64 @meshopt_encodeIndexBufferBound(i64 noundef %243, i64 noundef %244)
          to label %246 unwind label %303

246:                                              ; preds = %242
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %11) #8
  call void @_ZNSaIhEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %11) #8
  invoke void @_ZNSt6vectorIhSaIhEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef %245, ptr noundef nonnull align 1 dereferenceable(1) %11)
          to label %247 unwind label %305

247:                                              ; preds = %246
  call void @_ZNSt15__new_allocatorIhED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %11) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %11) #8
  %248 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorIhSaIhEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef 0) #8
  %249 = call noundef i64 @_ZNKSt6vectorIhSaIhEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %10) #8
  %250 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef 0) #8
  %251 = call noundef i64 @_ZNKSt6vectorIjSaIjEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #8
  %252 = invoke i64 @meshopt_encodeIndexBuffer(ptr noundef nonnull %248, i64 noundef %249, ptr noundef nonnull %250, i64 noundef %251)
          to label %253 unwind label %307

253:                                              ; preds = %247
  invoke void @_ZNSt6vectorIhSaIhEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef %252)
          to label %254 unwind label %307

254:                                              ; preds = %253
  %.sroa.4.0.extract.shift = lshr i64 %227, 32
  %.sroa.4.0.extract.trunc = trunc nuw i64 %.sroa.4.0.extract.shift to i32
  %255 = bitcast i32 %.sroa.4.0.extract.trunc to float
  %256 = extractvalue { i64, <2 x float> } %223, 1
  %.sroa.44.0.extract.shift = lshr i64 %219, 32
  %.sroa.44.0.extract.trunc = trunc nuw i64 %.sroa.44.0.extract.shift to i32
  %257 = bitcast i32 %.sroa.44.0.extract.trunc to float
  %258 = extractvalue { i64, <2 x float> } %215, 1
  %.sroa.46.8.vec.extract = extractelement <2 x float> %258, i64 0
  %259 = fpext float %.sroa.46.8.vec.extract to double
  %.sroa.42.8.vec.extract = extractelement <2 x float> %256, i64 0
  %260 = fpext float %.sroa.42.8.vec.extract to double
  %261 = fpext float %257 to double
  %262 = fpext float %255 to double
  %263 = call noundef i64 @_ZNKSt6vectorIhSaIhEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %8) #8
  %264 = uitofp i64 %263 to double
  %265 = call noundef i64 @_ZNKSt6vectorI6VertexSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #8
  %266 = uitofp i64 %265 to double
  %267 = fdiv double %264, %266
  %268 = fmul double %267, 8.000000e+00
  %269 = call noundef i64 @_ZNKSt6vectorIhSaIhEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %10) #8
  %270 = uitofp i64 %269 to double
  %271 = call noundef i64 @_ZNKSt6vectorIjSaIjEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #8
  %272 = udiv i64 %271, 3
  %273 = uitofp nneg i64 %272 to double
  %274 = fdiv double %270, %273
  %275 = fmul double %274, 8.000000e+00
  %276 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.13, ptr noundef nonnull @.str.14, double noundef %259, double noundef %260, double noundef %261, double noundef %262, double noundef %268, double noundef %275)
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %10) #8
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #8
  call void @_ZNSt6vectorI15PackedVertexOctSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #8
  call void @_ZNSt6vectorI6VertexSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #8
  call void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #8
  %277 = getelementptr inbounds i8, ptr %2, i64 96
  call void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %277) #8
  %278 = getelementptr inbounds i8, ptr %2, i64 72
  call void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %278) #8
  %279 = getelementptr inbounds i8, ptr %2, i64 48
  call void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %279) #8
  %280 = getelementptr inbounds i8, ptr %2, i64 24
  call void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %280) #8
  call void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #8
  call void @llvm.lifetime.end.p0(i64 120, ptr nonnull %2) #8
  ret void

281:                                              ; preds = %172
  %282 = landingpad { ptr, i32 }
          cleanup
  br label %315

283:                                              ; preds = %195
  %284 = landingpad { ptr, i32 }
          cleanup
  br label %314

285:                                              ; preds = %202
  %286 = landingpad { ptr, i32 }
          cleanup
  br label %314

287:                                              ; preds = %216
  %288 = landingpad { ptr, i32 }
          cleanup
  br label %314

289:                                              ; preds = %220
  %290 = landingpad { ptr, i32 }
          cleanup
  br label %314

291:                                              ; preds = %224
  %292 = landingpad { ptr, i32 }
          cleanup
  br label %314

293:                                              ; preds = %228
  %294 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorI15PackedVertexOctED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %7) #8
  br label %313

295:                                              ; preds = %230
  %296 = landingpad { ptr, i32 }
          cleanup
  br label %312

297:                                              ; preds = %231
  %298 = landingpad { ptr, i32 }
          cleanup
  br label %311

299:                                              ; preds = %234
  %300 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIhED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %9) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %9) #8
  br label %311

301:                                              ; preds = %241, %235
  %302 = landingpad { ptr, i32 }
          cleanup
  br label %310

303:                                              ; preds = %242
  %304 = landingpad { ptr, i32 }
          cleanup
  br label %309

305:                                              ; preds = %246
  %306 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIhED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %11) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %11) #8
  br label %309

307:                                              ; preds = %253, %247
  %308 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #8
  br label %309

309:                                              ; preds = %307, %305, %303
  %.pn = phi { ptr, i32 } [ %308, %307 ], [ %306, %305 ], [ %304, %303 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %10) #8
  br label %310

310:                                              ; preds = %309, %301
  %.pn.pn = phi { ptr, i32 } [ %.pn, %309 ], [ %302, %301 ]
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #8
  br label %311

311:                                              ; preds = %310, %299, %297
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %310 ], [ %300, %299 ], [ %298, %297 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #8
  br label %312

312:                                              ; preds = %311, %295
  %.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn, %311 ], [ %296, %295 ]
  call void @_ZNSt6vectorI15PackedVertexOctSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #8
  br label %313

313:                                              ; preds = %312, %293
  %.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn, %312 ], [ %294, %293 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #8
  br label %314

314:                                              ; preds = %285, %289, %313, %291, %287, %283
  %.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %284, %283 ], [ %286, %285 ], [ %288, %287 ], [ %290, %289 ], [ %.pn.pn.pn.pn.pn, %313 ], [ %292, %291 ]
  call void @_ZNSt6vectorI6VertexSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #8
  br label %315

315:                                              ; preds = %314, %281
  %.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn, %314 ], [ %282, %281 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #8
  call void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #8
  br label %316

316:                                              ; preds = %315, %193
  %.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn, %315 ], [ %194, %193 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #8
  br label %317

317:                                              ; preds = %170, %316, %103, %23
  %.pn98 = phi { ptr, i32 } [ %104, %103 ], [ %24, %23 ], [ %171, %170 ], [ %.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn, %316 ]
  %318 = getelementptr inbounds i8, ptr %2, i64 96
  call void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %318) #8
  %319 = getelementptr inbounds i8, ptr %2, i64 72
  call void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %319) #8
  %320 = getelementptr inbounds i8, ptr %2, i64 48
  call void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %320) #8
  %321 = getelementptr inbounds i8, ptr %2, i64 24
  call void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %321) #8
  call void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #8
  call void @llvm.lifetime.end.p0(i64 120, ptr nonnull %2) #8
  resume { ptr, i32 } %.pn98
}

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i64 @_Z16meshopt_simplifyIjEmPT_PKS0_mPKfmmmfjPf(ptr noundef, ptr noundef, i64 noundef, ptr noundef, i64 noundef, i64 noundef, i64 noundef, float noundef, i32 noundef, ptr noundef) local_unnamed_addr #7

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

declare { i64, <2 x float> } @meshopt_analyzeVertexCache(ptr noundef, i64 noundef, i64 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #5

declare i64 @meshopt_analyzeVertexFetch(ptr noundef, i64 noundef, i64 noundef, i64 noundef) local_unnamed_addr #5

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

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

declare i64 @meshopt_encodeVertexBufferBound(i64 noundef, i64 noundef) local_unnamed_addr #5

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

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

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

declare i64 @meshopt_encodeVertexBuffer(ptr noundef, i64 noundef, ptr noundef, i64 noundef, i64 noundef) local_unnamed_addr #5

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

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

declare i64 @meshopt_encodeIndexBufferBound(i64 noundef, i64 noundef) local_unnamed_addr #5

declare i64 @meshopt_encodeIndexBuffer(ptr noundef, i64 noundef, ptr noundef, i64 noundef) local_unnamed_addr #5

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIhED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) 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 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { mustprogress uwtable "min-legal-vector-width"="64" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { 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 #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)"}


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