; LLVM IR from zeux/meshoptimizer :: demo/nanite.ll (Z4clrtRKSt6vectorI6VertexSaIS0_EERKS_IjSaIjEE)

; 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.28" = type { %"struct.std::_Vector_base.29" }
%"struct.std::_Vector_base.29" = type { %"struct.std::_Vector_base<Box, std::allocator<Box>>::_Vector_impl" }
%"struct.std::_Vector_base<Box, std::allocator<Box>>::_Vector_impl" = type { %"struct.std::_Vector_base<Box, std::allocator<Box>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Box, std::allocator<Box>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator.30" = type { i8 }
%struct.Box = type { [3 x float], [3 x float], [3 x float] }
%"class.std::vector.33" = type { %"struct.std::_Vector_base.34" }
%"struct.std::_Vector_base.34" = type { %"struct.std::_Vector_base<meshopt_Meshlet, std::allocator<meshopt_Meshlet>>::_Vector_impl" }
%"struct.std::_Vector_base<meshopt_Meshlet, std::allocator<meshopt_Meshlet>>::_Vector_impl" = type { %"struct.std::_Vector_base<meshopt_Meshlet, std::allocator<meshopt_Meshlet>>::_Vector_impl_data" }
%"struct.std::_Vector_base<meshopt_Meshlet, std::allocator<meshopt_Meshlet>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator.35" = type { i8 }
%"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.5" = type { %"struct.std::_Vector_base.6" }
%"struct.std::_Vector_base.6" = 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.7" = type { i8 }
%struct.Vertex = type { float, float, float, float, float, float, float, float }
%struct.meshopt_Meshlet = type { i32, i32, i32, i32 }

@.str.15 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [56 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [39 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local void @_Z4clrtRKSt6vectorI6VertexSaIS0_EERKS_IjSaIjEE(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(24) %1) #0 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca %"class.std::vector.28", align 8
  %6 = alloca %"class.std::allocator.30", align 1
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca i64, align 8
  %10 = alloca i32, align 4
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  %15 = alloca %struct.Box, align 4
  %16 = alloca i64, align 8
  %17 = alloca double, align 8
  %18 = alloca float, align 4
  %19 = alloca float, align 4
  %20 = alloca double, align 8
  %21 = alloca i8, align 1
  %22 = alloca i64, align 8
  %23 = alloca i64, align 8
  %24 = alloca i64, align 8
  %25 = alloca float, align 4
  %26 = alloca float, align 4
  %27 = alloca float, align 4
  %28 = alloca i64, align 8
  %29 = alloca %"class.std::vector.33", align 8
  %30 = alloca %"class.std::allocator.35", align 1
  %31 = alloca %"class.std::vector.0", align 8
  %32 = alloca %"class.std::allocator.2", align 1
  %33 = alloca %"class.std::vector.5", align 8
  %34 = alloca %"class.std::allocator.7", align 1
  %35 = alloca double, align 8
  %36 = alloca %"class.std::vector.28", align 8
  %37 = alloca %"class.std::allocator.30", align 1
  %38 = alloca %"class.std::vector.28", align 8
  %39 = alloca %"class.std::allocator.30", align 1
  %40 = alloca float, align 4
  %41 = alloca i64, align 8
  %42 = alloca i64, align 8
  %43 = alloca ptr, align 8
  %44 = alloca ptr, align 8
  %45 = alloca i64, align 8
  %46 = alloca ptr, align 8
  %47 = alloca i32, align 4
  %48 = alloca i64, align 8
  %49 = alloca ptr, align 8
  %50 = alloca i32, align 4
  %51 = alloca ptr, align 8
  %52 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr %5) #6
  %53 = load ptr, ptr %4, align 8, !tbaa !5
  %54 = call noundef i64 @_ZNKSt6vectorIjSaIjEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %53) #6
  %55 = udiv i64 %54, 3
  call void @llvm.lifetime.start.p0(i64 1, ptr %6) #6
  call void @_ZNSaI3BoxEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #6
  invoke void @_ZNSt6vectorI3BoxSaIS0_EEC2EmRKS1_(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %55, ptr noundef nonnull align 1 dereferenceable(1) %6)
          to label %56 unwind label %64

56:                                               ; preds = %2
  call void @_ZNSt15__new_allocatorI3BoxED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %6) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
  store i64 0, ptr %9, align 8, !tbaa !9
  br label %57

57:                                               ; preds = %149, %56
  %58 = load i64, ptr %9, align 8, !tbaa !9
  %59 = load ptr, ptr %4, align 8, !tbaa !5
  %60 = call noundef i64 @_ZNKSt6vectorIjSaIjEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %59) #6
  %61 = udiv i64 %60, 3
  %62 = icmp ult i64 %58, %61
  br i1 %62, label %68, label %63

63:                                               ; preds = %57
  store i32 2, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  br label %152

64:                                               ; preds = %2
  %65 = landingpad { ptr, i32 }
          cleanup
  %66 = extractvalue { ptr, i32 } %65, 0
  store ptr %66, ptr %7, align 8
  %67 = extractvalue { ptr, i32 } %65, 1
  store i32 %67, ptr %8, align 4
  call void @_ZNSt15__new_allocatorI3BoxED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %6) #6
  br label %568

68:                                               ; preds = %57
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
  %69 = load i64, ptr %9, align 8, !tbaa !9
  %70 = call noundef nonnull align 4 dereferenceable(36) ptr @_ZNSt6vectorI3BoxSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %69) #6
  store ptr %70, ptr %11, align 8, !tbaa !5
  %71 = load ptr, ptr %11, align 8, !tbaa !5
  %72 = getelementptr inbounds %struct.Box, ptr %71, i32 0, i32 0
  %73 = getelementptr inbounds [3 x float], ptr %72, i64 0, i64 2
  store float 0x47EFFFFFE0000000, ptr %73, align 4, !tbaa !11
  %74 = load ptr, ptr %11, align 8, !tbaa !5
  %75 = getelementptr inbounds %struct.Box, ptr %74, i32 0, i32 0
  %76 = getelementptr inbounds [3 x float], ptr %75, i64 0, i64 1
  store float 0x47EFFFFFE0000000, ptr %76, align 4, !tbaa !11
  %77 = load ptr, ptr %11, align 8, !tbaa !5
  %78 = getelementptr inbounds %struct.Box, ptr %77, i32 0, i32 0
  %79 = getelementptr inbounds [3 x float], ptr %78, i64 0, i64 0
  store float 0x47EFFFFFE0000000, ptr %79, align 4, !tbaa !11
  %80 = load ptr, ptr %11, align 8, !tbaa !5
  %81 = getelementptr inbounds %struct.Box, ptr %80, i32 0, i32 1
  %82 = getelementptr inbounds [3 x float], ptr %81, i64 0, i64 2
  store float 0xC7EFFFFFE0000000, ptr %82, align 4, !tbaa !11
  %83 = load ptr, ptr %11, align 8, !tbaa !5
  %84 = getelementptr inbounds %struct.Box, ptr %83, i32 0, i32 1
  %85 = getelementptr inbounds [3 x float], ptr %84, i64 0, i64 1
  store float 0xC7EFFFFFE0000000, ptr %85, align 4, !tbaa !11
  %86 = load ptr, ptr %11, align 8, !tbaa !5
  %87 = getelementptr inbounds %struct.Box, ptr %86, i32 0, i32 1
  %88 = getelementptr inbounds [3 x float], ptr %87, i64 0, i64 0
  store float 0xC7EFFFFFE0000000, ptr %88, align 4, !tbaa !11
  %89 = load ptr, ptr %11, align 8, !tbaa !5
  %90 = getelementptr inbounds %struct.Box, ptr %89, i32 0, i32 2
  %91 = getelementptr inbounds [3 x float], ptr %90, i64 0, i64 2
  store float 0.000000e+00, ptr %91, align 4, !tbaa !11
  %92 = load ptr, ptr %11, align 8, !tbaa !5
  %93 = getelementptr inbounds %struct.Box, ptr %92, i32 0, i32 2
  %94 = getelementptr inbounds [3 x float], ptr %93, i64 0, i64 1
  store float 0.000000e+00, ptr %94, align 4, !tbaa !11
  %95 = load ptr, ptr %11, align 8, !tbaa !5
  %96 = getelementptr inbounds %struct.Box, ptr %95, i32 0, i32 2
  %97 = getelementptr inbounds [3 x float], ptr %96, i64 0, i64 0
  store float 0.000000e+00, ptr %97, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #6
  store i32 0, ptr %12, align 4, !tbaa !13
  br label %98

98:                                               ; preds = %125, %68
  %99 = load i32, ptr %12, align 4, !tbaa !13
  %100 = icmp slt i32 %99, 3
  br i1 %100, label %102, label %101

101:                                              ; preds = %98
  store i32 5, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  br label %132

102:                                              ; preds = %98
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #6
  %103 = load ptr, ptr %3, align 8, !tbaa !5
  %104 = load ptr, ptr %4, align 8, !tbaa !5
  %105 = load i64, ptr %9, align 8, !tbaa !9
  %106 = mul i64 %105, 3
  %107 = load i32, ptr %12, align 4, !tbaa !13
  %108 = sext i32 %107 to i64
  %109 = add i64 %106, %108
  %110 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %104, i64 noundef %109) #6
  %111 = load i32, ptr %110, align 4, !tbaa !13
  %112 = zext i32 %111 to i64
  %113 = call noundef nonnull align 4 dereferenceable(32) ptr @_ZNKSt6vectorI6VertexSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %103, i64 noundef %112) #6
  store ptr %113, ptr %13, align 8, !tbaa !5
  %114 = load ptr, ptr %11, align 8, !tbaa !5
  %115 = load ptr, ptr %13, align 8, !tbaa !5
  %116 = getelementptr inbounds %struct.Vertex, ptr %115, i32 0, i32 0
  %117 = load float, ptr %116, align 4, !tbaa !15
  %118 = load ptr, ptr %13, align 8, !tbaa !5
  %119 = getelementptr inbounds %struct.Vertex, ptr %118, i32 0, i32 1
  %120 = load float, ptr %119, align 4, !tbaa !17
  %121 = load ptr, ptr %13, align 8, !tbaa !5
  %122 = getelementptr inbounds %struct.Vertex, ptr %121, i32 0, i32 2
  %123 = load float, ptr %122, align 4, !tbaa !18
  invoke void @_ZL9expandBoxR3Boxfff(ptr noundef nonnull align 4 dereferenceable(36) %114, float noundef %117, float noundef %120, float noundef %123)
          to label %124 unwind label %128

124:                                              ; preds = %102
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  br label %125

125:                                              ; preds = %124
  %126 = load i32, ptr %12, align 4, !tbaa !13
  %127 = add nsw i32 %126, 1
  store i32 %127, ptr %12, align 4, !tbaa !13
  br label %98, !llvm.loop !19

128:                                              ; preds = %102
  %129 = landingpad { ptr, i32 }
          cleanup
  %130 = extractvalue { ptr, i32 } %129, 0
  store ptr %130, ptr %7, align 8
  %131 = extractvalue { ptr, i32 } %129, 1
  store i32 %131, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  br label %567

132:                                              ; preds = %101
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #6
  store i32 0, ptr %14, align 4, !tbaa !13
  br label %133

133:                                              ; preds = %145, %132
  %134 = load i32, ptr %14, align 4, !tbaa !13
  %135 = icmp slt i32 %134, 3
  br i1 %135, label %137, label %136

136:                                              ; preds = %133
  store i32 8, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  br label %148

137:                                              ; preds = %133
  %138 = load ptr, ptr %11, align 8, !tbaa !5
  %139 = getelementptr inbounds %struct.Box, ptr %138, i32 0, i32 2
  %140 = load i32, ptr %14, align 4, !tbaa !13
  %141 = sext i32 %140 to i64
  %142 = getelementptr inbounds [3 x float], ptr %139, i64 0, i64 %141
  %143 = load float, ptr %142, align 4, !tbaa !11
  %144 = fdiv float %143, 3.000000e+00
  store float %144, ptr %142, align 4, !tbaa !11
  br label %145

145:                                              ; preds = %137
  %146 = load i32, ptr %14, align 4, !tbaa !13
  %147 = add nsw i32 %146, 1
  store i32 %147, ptr %14, align 4, !tbaa !13
  br label %133, !llvm.loop !21

148:                                              ; preds = %136
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  br label %149

149:                                              ; preds = %148
  %150 = load i64, ptr %9, align 8, !tbaa !9
  %151 = add i64 %150, 1
  store i64 %151, ptr %9, align 8, !tbaa !9
  br label %57, !llvm.loop !22

152:                                              ; preds = %63
  call void @llvm.lifetime.start.p0(i64 36, ptr %15) #6
  %153 = call noundef nonnull align 4 dereferenceable(36) ptr @_ZNSt6vectorI3BoxSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef 0) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %15, ptr align 4 %153, i64 36, i1 false), !tbaa.struct !23
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #6
  store i64 1, ptr %16, align 8, !tbaa !9
  br label %154

154:                                              ; preds = %163, %152
  %155 = load i64, ptr %16, align 8, !tbaa !9
  %156 = call noundef i64 @_ZNKSt6vectorI3BoxSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #6
  %157 = icmp ult i64 %155, %156
  br i1 %157, label %159, label %158

158:                                              ; preds = %154
  store i32 11, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  br label %170

159:                                              ; preds = %154
  %160 = load i64, ptr %16, align 8, !tbaa !9
  %161 = call noundef nonnull align 4 dereferenceable(36) ptr @_ZNSt6vectorI3BoxSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %160) #6
  invoke void @_ZL8mergeBoxR3BoxRKS_(ptr noundef nonnull align 4 dereferenceable(36) %15, ptr noundef nonnull align 4 dereferenceable(36) %161)
          to label %162 unwind label %166

162:                                              ; preds = %159
  br label %163

163:                                              ; preds = %162
  %164 = load i64, ptr %16, align 8, !tbaa !9
  %165 = add i64 %164, 1
  store i64 %165, ptr %16, align 8, !tbaa !9
  br label %154, !llvm.loop !25

166:                                              ; preds = %159
  %167 = landingpad { ptr, i32 }
          cleanup
  %168 = extractvalue { ptr, i32 } %167, 0
  store ptr %168, ptr %7, align 8
  %169 = extractvalue { ptr, i32 } %167, 1
  store i32 %169, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  br label %566

170:                                              ; preds = %158
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #6
  %171 = invoke noundef double @_Z9timestampv()
          to label %172 unwind label %219

172:                                              ; preds = %170
  store double %171, ptr %17, align 8, !tbaa !26
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #6
  %173 = invoke noundef float @_Z7surfaceRK3Box(ptr noundef nonnull align 4 dereferenceable(36) %15)
          to label %174 unwind label %223

174:                                              ; preds = %172
  store float %173, ptr %18, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #6
  %175 = call noundef nonnull align 4 dereferenceable(36) ptr @_ZNSt6vectorI3BoxSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef 0) #6
  %176 = call noundef i64 @_ZNKSt6vectorI3BoxSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #6
  %177 = invoke noundef float @_ZL7sahCostPK3Boxm(ptr noundef %175, i64 noundef %176)
          to label %178 unwind label %227

178:                                              ; preds = %174
  store float %177, ptr %19, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #6
  %179 = invoke noundef double @_Z9timestampv()
          to label %180 unwind label %231

180:                                              ; preds = %178
  store double %179, ptr %20, align 8, !tbaa !26
  call void @llvm.lifetime.start.p0(i64 1, ptr %21) #6
  store i8 1, ptr %21, align 1, !tbaa !28
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #6
  store i64 64, ptr %22, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #6
  store i64 16, ptr %23, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #6
  store i64 64, ptr %24, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #6
  store float -2.500000e-01, ptr %25, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #6
  store float 2.000000e+00, ptr %26, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #6
  store float 5.000000e-01, ptr %27, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #6
  %181 = load ptr, ptr %4, align 8, !tbaa !5
  %182 = call noundef i64 @_ZNKSt6vectorIjSaIjEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %181) #6
  %183 = invoke i64 @meshopt_buildMeshletsBound(i64 noundef %182, i64 noundef 64, i64 noundef 16)
          to label %184 unwind label %235

184:                                              ; preds = %180
  store i64 %183, ptr %28, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 24, ptr %29) #6
  %185 = load i64, ptr %28, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 1, ptr %30) #6
  call void @_ZNSaI15meshopt_MeshletEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %30) #6
  invoke void @_ZNSt6vectorI15meshopt_MeshletSaIS0_EEC2EmRKS1_(ptr noundef nonnull align 8 dereferenceable(24) %29, i64 noundef %185, ptr noundef nonnull align 1 dereferenceable(1) %30)
          to label %186 unwind label %239

186:                                              ; preds = %184
  call void @_ZNSt15__new_allocatorI15meshopt_MeshletED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %30) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %30) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr %31) #6
  %187 = load i64, ptr %28, align 8, !tbaa !9
  %188 = mul i64 %187, 64
  call void @llvm.lifetime.start.p0(i64 1, ptr %32) #6
  call void @_ZNSaIjEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %32) #6
  invoke void @_ZNSt6vectorIjSaIjEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %31, i64 noundef %188, ptr noundef nonnull align 1 dereferenceable(1) %32)
          to label %189 unwind label %243

189:                                              ; preds = %186
  call void @_ZNSt15__new_allocatorIjED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %32) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %32) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr %33) #6
  %190 = load i64, ptr %28, align 8, !tbaa !9
  %191 = mul i64 %190, 64
  %192 = mul i64 %191, 3
  call void @llvm.lifetime.start.p0(i64 1, ptr %34) #6
  call void @_ZNSaIhEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %34) #6
  invoke void @_ZNSt6vectorIhSaIhEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %33, i64 noundef %192, ptr noundef nonnull align 1 dereferenceable(1) %34)
          to label %193 unwind label %247

193:                                              ; preds = %189
  call void @_ZNSt15__new_allocatorIhED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %34) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %34) #6
  %194 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZNSt6vectorI15meshopt_MeshletSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %29, i64 noundef 0) #6
  %195 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %31, i64 noundef 0) #6
  %196 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorIhSaIhEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %33, i64 noundef 0) #6
  %197 = load ptr, ptr %4, align 8, !tbaa !5
  %198 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %197, i64 noundef 0) #6
  %199 = load ptr, ptr %4, align 8, !tbaa !5
  %200 = call noundef i64 @_ZNKSt6vectorIjSaIjEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %199) #6
  %201 = load ptr, ptr %3, align 8, !tbaa !5
  %202 = call noundef nonnull align 4 dereferenceable(32) ptr @_ZNKSt6vectorI6VertexSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %201, i64 noundef 0) #6
  %203 = getelementptr inbounds %struct.Vertex, ptr %202, i32 0, i32 0
  %204 = load ptr, ptr %3, align 8, !tbaa !5
  %205 = call noundef i64 @_ZNKSt6vectorI6VertexSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %204) #6
  %206 = invoke i64 @meshopt_buildMeshletsSplit(ptr noundef %194, ptr noundef %195, ptr noundef %196, ptr noundef %198, i64 noundef %200, ptr noundef %203, i64 noundef %205, i64 noundef 32, i64 noundef 64, i64 noundef 16, i64 noundef 64, float noundef 5.000000e-01)
          to label %207 unwind label %251

207:                                              ; preds = %193
  invoke void @_ZNSt6vectorI15meshopt_MeshletSaIS0_EE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %29, i64 noundef %206)
          to label %208 unwind label %251

208:                                              ; preds = %207
  call void @llvm.lifetime.start.p0(i64 8, ptr %35) #6
  %209 = invoke noundef double @_Z9timestampv()
          to label %210 unwind label %255

210:                                              ; preds = %208
  store double %209, ptr %35, align 8, !tbaa !26
  call void @llvm.lifetime.start.p0(i64 24, ptr %36) #6
  %211 = call noundef i64 @_ZNKSt6vectorI15meshopt_MeshletSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %29) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %37) #6
  call void @_ZNSaI3BoxEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %37) #6
  invoke void @_ZNSt6vectorI3BoxSaIS0_EEC2EmRKS1_(ptr noundef nonnull align 8 dereferenceable(24) %36, i64 noundef %211, ptr noundef nonnull align 1 dereferenceable(1) %37)
          to label %212 unwind label %259

212:                                              ; preds = %210
  call void @_ZNSt15__new_allocatorI3BoxED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %37) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %37) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr %38) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %39) #6
  call void @_ZNSaI3BoxEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %39) #6
  invoke void @_ZNSt6vectorI3BoxSaIS0_EEC2EmRKS1_(ptr noundef nonnull align 8 dereferenceable(24) %38, i64 noundef 64, ptr noundef nonnull align 1 dereferenceable(1) %39)
          to label %213 unwind label %263

213:                                              ; preds = %212
  call void @_ZNSt15__new_allocatorI3BoxED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %39) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %39) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %40) #6
  store float 0.000000e+00, ptr %40, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %41) #6
  store i64 0, ptr %41, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %42) #6
  store i64 0, ptr %42, align 8, !tbaa !9
  br label %214

214:                                              ; preds = %492, %213
  %215 = load i64, ptr %42, align 8, !tbaa !9
  %216 = call noundef i64 @_ZNKSt6vectorI15meshopt_MeshletSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %29) #6
  %217 = icmp ult i64 %215, %216
  br i1 %217, label %267, label %218

218:                                              ; preds = %214
  store i32 14, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %42) #6
  br label %500

219:                                              ; preds = %170
  %220 = landingpad { ptr, i32 }
          cleanup
  %221 = extractvalue { ptr, i32 } %220, 0
  store ptr %221, ptr %7, align 8
  %222 = extractvalue { ptr, i32 } %220, 1
  store i32 %222, ptr %8, align 4
  br label %565

223:                                              ; preds = %172
  %224 = landingpad { ptr, i32 }
          cleanup
  %225 = extractvalue { ptr, i32 } %224, 0
  store ptr %225, ptr %7, align 8
  %226 = extractvalue { ptr, i32 } %224, 1
  store i32 %226, ptr %8, align 4
  br label %564

227:                                              ; preds = %174
  %228 = landingpad { ptr, i32 }
          cleanup
  %229 = extractvalue { ptr, i32 } %228, 0
  store ptr %229, ptr %7, align 8
  %230 = extractvalue { ptr, i32 } %228, 1
  store i32 %230, ptr %8, align 4
  br label %563

231:                                              ; preds = %178
  %232 = landingpad { ptr, i32 }
          cleanup
  %233 = extractvalue { ptr, i32 } %232, 0
  store ptr %233, ptr %7, align 8
  %234 = extractvalue { ptr, i32 } %232, 1
  store i32 %234, ptr %8, align 4
  br label %562

235:                                              ; preds = %180
  %236 = landingpad { ptr, i32 }
          cleanup
  %237 = extractvalue { ptr, i32 } %236, 0
  store ptr %237, ptr %7, align 8
  %238 = extractvalue { ptr, i32 } %236, 1
  store i32 %238, ptr %8, align 4
  br label %561

239:                                              ; preds = %184
  %240 = landingpad { ptr, i32 }
          cleanup
  %241 = extractvalue { ptr, i32 } %240, 0
  store ptr %241, ptr %7, align 8
  %242 = extractvalue { ptr, i32 } %240, 1
  store i32 %242, ptr %8, align 4
  call void @_ZNSt15__new_allocatorI15meshopt_MeshletED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %30) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %30) #6
  br label %560

243:                                              ; preds = %186
  %244 = landingpad { ptr, i32 }
          cleanup
  %245 = extractvalue { ptr, i32 } %244, 0
  store ptr %245, ptr %7, align 8
  %246 = extractvalue { ptr, i32 } %244, 1
  store i32 %246, ptr %8, align 4
  call void @_ZNSt15__new_allocatorIjED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %32) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %32) #6
  br label %559

247:                                              ; preds = %189
  %248 = landingpad { ptr, i32 }
          cleanup
  %249 = extractvalue { ptr, i32 } %248, 0
  store ptr %249, ptr %7, align 8
  %250 = extractvalue { ptr, i32 } %248, 1
  store i32 %250, ptr %8, align 4
  call void @_ZNSt15__new_allocatorIhED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %34) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %34) #6
  br label %558

251:                                              ; preds = %207, %193
  %252 = landingpad { ptr, i32 }
          cleanup
  %253 = extractvalue { ptr, i32 } %252, 0
  store ptr %253, ptr %7, align 8
  %254 = extractvalue { ptr, i32 } %252, 1
  store i32 %254, ptr %8, align 4
  br label %557

255:                                              ; preds = %208
  %256 = landingpad { ptr, i32 }
          cleanup
  %257 = extractvalue { ptr, i32 } %256, 0
  store ptr %257, ptr %7, align 8
  %258 = extractvalue { ptr, i32 } %256, 1
  store i32 %258, ptr %8, align 4
  br label %556

259:                                              ; preds = %210
  %260 = landingpad { ptr, i32 }
          cleanup
  %261 = extractvalue { ptr, i32 } %260, 0
  store ptr %261, ptr %7, align 8
  %262 = extractvalue { ptr, i32 } %260, 1
  store i32 %262, ptr %8, align 4
  call void @_ZNSt15__new_allocatorI3BoxED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %37) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %37) #6
  br label %555

263:                                              ; preds = %212
  %264 = landingpad { ptr, i32 }
          cleanup
  %265 = extractvalue { ptr, i32 } %264, 0
  store ptr %265, ptr %7, align 8
  %266 = extractvalue { ptr, i32 } %264, 1
  store i32 %266, ptr %8, align 4
  call void @_ZNSt15__new_allocatorI3BoxED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %39) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %39) #6
  br label %554

267:                                              ; preds = %214
  call void @llvm.lifetime.start.p0(i64 8, ptr %43) #6
  %268 = load i64, ptr %42, align 8, !tbaa !9
  %269 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZNSt6vectorI15meshopt_MeshletSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %29, i64 noundef %268) #6
  store ptr %269, ptr %43, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %44) #6
  %270 = load i64, ptr %42, align 8, !tbaa !9
  %271 = call noundef nonnull align 4 dereferenceable(36) ptr @_ZNSt6vectorI3BoxSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %36, i64 noundef %270) #6
  store ptr %271, ptr %44, align 8, !tbaa !5
  %272 = load ptr, ptr %44, align 8, !tbaa !5
  %273 = getelementptr inbounds %struct.Box, ptr %272, i32 0, i32 0
  %274 = getelementptr inbounds [3 x float], ptr %273, i64 0, i64 2
  store float 0x47EFFFFFE0000000, ptr %274, align 4, !tbaa !11
  %275 = load ptr, ptr %44, align 8, !tbaa !5
  %276 = getelementptr inbounds %struct.Box, ptr %275, i32 0, i32 0
  %277 = getelementptr inbounds [3 x float], ptr %276, i64 0, i64 1
  store float 0x47EFFFFFE0000000, ptr %277, align 4, !tbaa !11
  %278 = load ptr, ptr %44, align 8, !tbaa !5
  %279 = getelementptr inbounds %struct.Box, ptr %278, i32 0, i32 0
  %280 = getelementptr inbounds [3 x float], ptr %279, i64 0, i64 0
  store float 0x47EFFFFFE0000000, ptr %280, align 4, !tbaa !11
  %281 = load ptr, ptr %44, align 8, !tbaa !5
  %282 = getelementptr inbounds %struct.Box, ptr %281, i32 0, i32 1
  %283 = getelementptr inbounds [3 x float], ptr %282, i64 0, i64 2
  store float 0xC7EFFFFFE0000000, ptr %283, align 4, !tbaa !11
  %284 = load ptr, ptr %44, align 8, !tbaa !5
  %285 = getelementptr inbounds %struct.Box, ptr %284, i32 0, i32 1
  %286 = getelementptr inbounds [3 x float], ptr %285, i64 0, i64 1
  store float 0xC7EFFFFFE0000000, ptr %286, align 4, !tbaa !11
  %287 = load ptr, ptr %44, align 8, !tbaa !5
  %288 = getelementptr inbounds %struct.Box, ptr %287, i32 0, i32 1
  %289 = getelementptr inbounds [3 x float], ptr %288, i64 0, i64 0
  store float 0xC7EFFFFFE0000000, ptr %289, align 4, !tbaa !11
  %290 = load ptr, ptr %44, align 8, !tbaa !5
  %291 = getelementptr inbounds %struct.Box, ptr %290, i32 0, i32 2
  %292 = getelementptr inbounds [3 x float], ptr %291, i64 0, i64 2
  store float 0.000000e+00, ptr %292, align 4, !tbaa !11
  %293 = load ptr, ptr %44, align 8, !tbaa !5
  %294 = getelementptr inbounds %struct.Box, ptr %293, i32 0, i32 2
  %295 = getelementptr inbounds [3 x float], ptr %294, i64 0, i64 1
  store float 0.000000e+00, ptr %295, align 4, !tbaa !11
  %296 = load ptr, ptr %44, align 8, !tbaa !5
  %297 = getelementptr inbounds %struct.Box, ptr %296, i32 0, i32 2
  %298 = getelementptr inbounds [3 x float], ptr %297, i64 0, i64 0
  store float 0.000000e+00, ptr %298, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %45) #6
  store i64 0, ptr %45, align 8, !tbaa !9
  br label %299

299:                                              ; preds = %330, %267
  %300 = load i64, ptr %45, align 8, !tbaa !9
  %301 = load ptr, ptr %43, align 8, !tbaa !5
  %302 = getelementptr inbounds %struct.meshopt_Meshlet, ptr %301, i32 0, i32 2
  %303 = load i32, ptr %302, align 4, !tbaa !30
  %304 = zext i32 %303 to i64
  %305 = icmp ult i64 %300, %304
  br i1 %305, label %307, label %306

306:                                              ; preds = %299
  store i32 17, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %45) #6
  br label %337

307:                                              ; preds = %299
  call void @llvm.lifetime.start.p0(i64 8, ptr %46) #6
  %308 = load ptr, ptr %3, align 8, !tbaa !5
  %309 = load ptr, ptr %43, align 8, !tbaa !5
  %310 = getelementptr inbounds %struct.meshopt_Meshlet, ptr %309, i32 0, i32 0
  %311 = load i32, ptr %310, align 4, !tbaa !32
  %312 = zext i32 %311 to i64
  %313 = load i64, ptr %45, align 8, !tbaa !9
  %314 = add i64 %312, %313
  %315 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %31, i64 noundef %314) #6
  %316 = load i32, ptr %315, align 4, !tbaa !13
  %317 = zext i32 %316 to i64
  %318 = call noundef nonnull align 4 dereferenceable(32) ptr @_ZNKSt6vectorI6VertexSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %308, i64 noundef %317) #6
  store ptr %318, ptr %46, align 8, !tbaa !5
  %319 = load ptr, ptr %44, align 8, !tbaa !5
  %320 = load ptr, ptr %46, align 8, !tbaa !5
  %321 = getelementptr inbounds %struct.Vertex, ptr %320, i32 0, i32 0
  %322 = load float, ptr %321, align 4, !tbaa !15
  %323 = load ptr, ptr %46, align 8, !tbaa !5
  %324 = getelementptr inbounds %struct.Vertex, ptr %323, i32 0, i32 1
  %325 = load float, ptr %324, align 4, !tbaa !17
  %326 = load ptr, ptr %46, align 8, !tbaa !5
  %327 = getelementptr inbounds %struct.Vertex, ptr %326, i32 0, i32 2
  %328 = load float, ptr %327, align 4, !tbaa !18
  invoke void @_ZL9expandBoxR3Boxfff(ptr noundef nonnull align 4 dereferenceable(36) %319, float noundef %322, float noundef %325, float noundef %328)
          to label %329 unwind label %333

329:                                              ; preds = %307
  call void @llvm.lifetime.end.p0(i64 8, ptr %46) #6
  br label %330

330:                                              ; preds = %329
  %331 = load i64, ptr %45, align 8, !tbaa !9
  %332 = add i64 %331, 1
  store i64 %332, ptr %45, align 8, !tbaa !9
  br label %299, !llvm.loop !33

333:                                              ; preds = %307
  %334 = landingpad { ptr, i32 }
          cleanup
  %335 = extractvalue { ptr, i32 } %334, 0
  store ptr %335, ptr %7, align 8
  %336 = extractvalue { ptr, i32 } %334, 1
  store i32 %336, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %46) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %45) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %44) #6
  br label %499

337:                                              ; preds = %306
  call void @llvm.lifetime.start.p0(i64 4, ptr %47) #6
  store i32 0, ptr %47, align 4, !tbaa !13
  br label %338

338:                                              ; preds = %362, %337
  %339 = load i32, ptr %47, align 4, !tbaa !13
  %340 = icmp slt i32 %339, 3
  br i1 %340, label %342, label %341

341:                                              ; preds = %338
  store i32 20, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %47) #6
  br label %365

342:                                              ; preds = %338
  %343 = load ptr, ptr %44, align 8, !tbaa !5
  %344 = getelementptr inbounds %struct.Box, ptr %343, i32 0, i32 1
  %345 = load i32, ptr %47, align 4, !tbaa !13
  %346 = sext i32 %345 to i64
  %347 = getelementptr inbounds [3 x float], ptr %344, i64 0, i64 %346
  %348 = load float, ptr %347, align 4, !tbaa !11
  %349 = load ptr, ptr %44, align 8, !tbaa !5
  %350 = getelementptr inbounds %struct.Box, ptr %349, i32 0, i32 0
  %351 = load i32, ptr %47, align 4, !tbaa !13
  %352 = sext i32 %351 to i64
  %353 = getelementptr inbounds [3 x float], ptr %350, i64 0, i64 %352
  %354 = load float, ptr %353, align 4, !tbaa !11
  %355 = fadd float %348, %354
  %356 = fmul float %355, 5.000000e-01
  %357 = load ptr, ptr %44, align 8, !tbaa !5
  %358 = getelementptr inbounds %struct.Box, ptr %357, i32 0, i32 2
  %359 = load i32, ptr %47, align 4, !tbaa !13
  %360 = sext i32 %359 to i64
  %361 = getelementptr inbounds [3 x float], ptr %358, i64 0, i64 %360
  store float %356, ptr %361, align 4, !tbaa !11
  br label %362

362:                                              ; preds = %342
  %363 = load i32, ptr %47, align 4, !tbaa !13
  %364 = add nsw i32 %363, 1
  store i32 %364, ptr %47, align 4, !tbaa !13
  br label %338, !llvm.loop !34

365:                                              ; preds = %341
  call void @llvm.lifetime.end.p0(i64 8, ptr %44) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %48) #6
  store i64 0, ptr %48, align 8, !tbaa !9
  br label %366

366:                                              ; preds = %467, %365
  %367 = load i64, ptr %48, align 8, !tbaa !9
  %368 = load ptr, ptr %43, align 8, !tbaa !5
  %369 = getelementptr inbounds %struct.meshopt_Meshlet, ptr %368, i32 0, i32 3
  %370 = load i32, ptr %369, align 4, !tbaa !35
  %371 = zext i32 %370 to i64
  %372 = icmp ult i64 %367, %371
  br i1 %372, label %374, label %373

373:                                              ; preds = %366
  store i32 23, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %48) #6
  br label %470

374:                                              ; preds = %366
  call void @llvm.lifetime.start.p0(i64 8, ptr %49) #6
  %375 = load i64, ptr %48, align 8, !tbaa !9
  %376 = call noundef nonnull align 4 dereferenceable(36) ptr @_ZNSt6vectorI3BoxSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %38, i64 noundef %375) #6
  store ptr %376, ptr %49, align 8, !tbaa !5
  %377 = load ptr, ptr %49, align 8, !tbaa !5
  %378 = getelementptr inbounds %struct.Box, ptr %377, i32 0, i32 0
  %379 = getelementptr inbounds [3 x float], ptr %378, i64 0, i64 2
  store float 0x47EFFFFFE0000000, ptr %379, align 4, !tbaa !11
  %380 = load ptr, ptr %49, align 8, !tbaa !5
  %381 = getelementptr inbounds %struct.Box, ptr %380, i32 0, i32 0
  %382 = getelementptr inbounds [3 x float], ptr %381, i64 0, i64 1
  store float 0x47EFFFFFE0000000, ptr %382, align 4, !tbaa !11
  %383 = load ptr, ptr %49, align 8, !tbaa !5
  %384 = getelementptr inbounds %struct.Box, ptr %383, i32 0, i32 0
  %385 = getelementptr inbounds [3 x float], ptr %384, i64 0, i64 0
  store float 0x47EFFFFFE0000000, ptr %385, align 4, !tbaa !11
  %386 = load ptr, ptr %49, align 8, !tbaa !5
  %387 = getelementptr inbounds %struct.Box, ptr %386, i32 0, i32 1
  %388 = getelementptr inbounds [3 x float], ptr %387, i64 0, i64 2
  store float 0xC7EFFFFFE0000000, ptr %388, align 4, !tbaa !11
  %389 = load ptr, ptr %49, align 8, !tbaa !5
  %390 = getelementptr inbounds %struct.Box, ptr %389, i32 0, i32 1
  %391 = getelementptr inbounds [3 x float], ptr %390, i64 0, i64 1
  store float 0xC7EFFFFFE0000000, ptr %391, align 4, !tbaa !11
  %392 = load ptr, ptr %49, align 8, !tbaa !5
  %393 = getelementptr inbounds %struct.Box, ptr %392, i32 0, i32 1
  %394 = getelementptr inbounds [3 x float], ptr %393, i64 0, i64 0
  store float 0xC7EFFFFFE0000000, ptr %394, align 4, !tbaa !11
  %395 = load ptr, ptr %49, align 8, !tbaa !5
  %396 = getelementptr inbounds %struct.Box, ptr %395, i32 0, i32 2
  %397 = getelementptr inbounds [3 x float], ptr %396, i64 0, i64 2
  store float 0.000000e+00, ptr %397, align 4, !tbaa !11
  %398 = load ptr, ptr %49, align 8, !tbaa !5
  %399 = getelementptr inbounds %struct.Box, ptr %398, i32 0, i32 2
  %400 = getelementptr inbounds [3 x float], ptr %399, i64 0, i64 1
  store float 0.000000e+00, ptr %400, align 4, !tbaa !11
  %401 = load ptr, ptr %49, align 8, !tbaa !5
  %402 = getelementptr inbounds %struct.Box, ptr %401, i32 0, i32 2
  %403 = getelementptr inbounds [3 x float], ptr %402, i64 0, i64 0
  store float 0.000000e+00, ptr %403, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %50) #6
  store i32 0, ptr %50, align 4, !tbaa !13
  br label %404

404:                                              ; preds = %443, %374
  %405 = load i32, ptr %50, align 4, !tbaa !13
  %406 = icmp slt i32 %405, 3
  br i1 %406, label %408, label %407

407:                                              ; preds = %404
  store i32 26, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %50) #6
  br label %450

408:                                              ; preds = %404
  call void @llvm.lifetime.start.p0(i64 8, ptr %51) #6
  %409 = load ptr, ptr %3, align 8, !tbaa !5
  %410 = load ptr, ptr %43, align 8, !tbaa !5
  %411 = getelementptr inbounds %struct.meshopt_Meshlet, ptr %410, i32 0, i32 0
  %412 = load i32, ptr %411, align 4, !tbaa !32
  %413 = load ptr, ptr %43, align 8, !tbaa !5
  %414 = getelementptr inbounds %struct.meshopt_Meshlet, ptr %413, i32 0, i32 1
  %415 = load i32, ptr %414, align 4, !tbaa !36
  %416 = zext i32 %415 to i64
  %417 = load i64, ptr %48, align 8, !tbaa !9
  %418 = mul i64 %417, 3
  %419 = add i64 %416, %418
  %420 = load i32, ptr %50, align 4, !tbaa !13
  %421 = sext i32 %420 to i64
  %422 = add i64 %419, %421
  %423 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorIhSaIhEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %33, i64 noundef %422) #6
  %424 = load i8, ptr %423, align 1, !tbaa !24
  %425 = zext i8 %424 to i32
  %426 = add i32 %412, %425
  %427 = zext i32 %426 to i64
  %428 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %31, i64 noundef %427) #6
  %429 = load i32, ptr %428, align 4, !tbaa !13
  %430 = zext i32 %429 to i64
  %431 = call noundef nonnull align 4 dereferenceable(32) ptr @_ZNKSt6vectorI6VertexSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %409, i64 noundef %430) #6
  store ptr %431, ptr %51, align 8, !tbaa !5
  %432 = load ptr, ptr %49, align 8, !tbaa !5
  %433 = load ptr, ptr %51, align 8, !tbaa !5
  %434 = getelementptr inbounds %struct.Vertex, ptr %433, i32 0, i32 0
  %435 = load float, ptr %434, align 4, !tbaa !15
  %436 = load ptr, ptr %51, align 8, !tbaa !5
  %437 = getelementptr inbounds %struct.Vertex, ptr %436, i32 0, i32 1
  %438 = load float, ptr %437, align 4, !tbaa !17
  %439 = load ptr, ptr %51, align 8, !tbaa !5
  %440 = getelementptr inbounds %struct.Vertex, ptr %439, i32 0, i32 2
  %441 = load float, ptr %440, align 4, !tbaa !18
  invoke void @_ZL9expandBoxR3Boxfff(ptr noundef nonnull align 4 dereferenceable(36) %432, float noundef %435, float noundef %438, float noundef %441)
          to label %442 unwind label %446

442:                                              ; preds = %408
  call void @llvm.lifetime.end.p0(i64 8, ptr %51) #6
  br label %443

443:                                              ; preds = %442
  %444 = load i32, ptr %50, align 4, !tbaa !13
  %445 = add nsw i32 %444, 1
  store i32 %445, ptr %50, align 4, !tbaa !13
  br label %404, !llvm.loop !37

446:                                              ; preds = %408
  %447 = landingpad { ptr, i32 }
          cleanup
  %448 = extractvalue { ptr, i32 } %447, 0
  store ptr %448, ptr %7, align 8
  %449 = extractvalue { ptr, i32 } %447, 1
  store i32 %449, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %51) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %50) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %49) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %48) #6
  br label %499

450:                                              ; preds = %407
  call void @llvm.lifetime.start.p0(i64 4, ptr %52) #6
  store i32 0, ptr %52, align 4, !tbaa !13
  br label %451

451:                                              ; preds = %463, %450
  %452 = load i32, ptr %52, align 4, !tbaa !13
  %453 = icmp slt i32 %452, 3
  br i1 %453, label %455, label %454

454:                                              ; preds = %451
  store i32 29, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %52) #6
  br label %466

455:                                              ; preds = %451
  %456 = load ptr, ptr %49, align 8, !tbaa !5
  %457 = getelementptr inbounds %struct.Box, ptr %456, i32 0, i32 2
  %458 = load i32, ptr %52, align 4, !tbaa !13
  %459 = sext i32 %458 to i64
  %460 = getelementptr inbounds [3 x float], ptr %457, i64 0, i64 %459
  %461 = load float, ptr %460, align 4, !tbaa !11
  %462 = fdiv float %461, 3.000000e+00
  store float %462, ptr %460, align 4, !tbaa !11
  br label %463

463:                                              ; preds = %455
  %464 = load i32, ptr %52, align 4, !tbaa !13
  %465 = add nsw i32 %464, 1
  store i32 %465, ptr %52, align 4, !tbaa !13
  br label %451, !llvm.loop !38

466:                                              ; preds = %454
  call void @llvm.lifetime.end.p0(i64 8, ptr %49) #6
  br label %467

467:                                              ; preds = %466
  %468 = load i64, ptr %48, align 8, !tbaa !9
  %469 = add i64 %468, 1
  store i64 %469, ptr %48, align 8, !tbaa !9
  br label %366, !llvm.loop !39

470:                                              ; preds = %373
  %471 = call noundef nonnull align 4 dereferenceable(36) ptr @_ZNSt6vectorI3BoxSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %38, i64 noundef 0) #6
  %472 = load ptr, ptr %43, align 8, !tbaa !5
  %473 = getelementptr inbounds %struct.meshopt_Meshlet, ptr %472, i32 0, i32 3
  %474 = load i32, ptr %473, align 4, !tbaa !35
  %475 = zext i32 %474 to i64
  %476 = invoke noundef float @_ZL7sahCostPK3Boxm(ptr noundef %471, i64 noundef %475)
          to label %477 unwind label %495

477:                                              ; preds = %470
  %478 = load float, ptr %40, align 4, !tbaa !11
  %479 = fadd float %478, %476
  store float %479, ptr %40, align 4, !tbaa !11
  %480 = load i64, ptr %42, align 8, !tbaa !9
  %481 = call noundef nonnull align 4 dereferenceable(36) ptr @_ZNSt6vectorI3BoxSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %36, i64 noundef %480) #6
  %482 = invoke noundef float @_Z7surfaceRK3Box(ptr noundef nonnull align 4 dereferenceable(36) %481)
          to label %483 unwind label %495

483:                                              ; preds = %477
  %484 = load float, ptr %40, align 4, !tbaa !11
  %485 = fsub float %484, %482
  store float %485, ptr %40, align 4, !tbaa !11
  %486 = load ptr, ptr %43, align 8, !tbaa !5
  %487 = getelementptr inbounds %struct.meshopt_Meshlet, ptr %486, i32 0, i32 2
  %488 = load i32, ptr %487, align 4, !tbaa !30
  %489 = zext i32 %488 to i64
  %490 = load i64, ptr %41, align 8, !tbaa !9
  %491 = add i64 %490, %489
  store i64 %491, ptr %41, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %43) #6
  br label %492

492:                                              ; preds = %483
  %493 = load i64, ptr %42, align 8, !tbaa !9
  %494 = add i64 %493, 1
  store i64 %494, ptr %42, align 8, !tbaa !9
  br label %214, !llvm.loop !40

495:                                              ; preds = %477, %470
  %496 = landingpad { ptr, i32 }
          cleanup
  %497 = extractvalue { ptr, i32 } %496, 0
  store ptr %497, ptr %7, align 8
  %498 = extractvalue { ptr, i32 } %496, 1
  store i32 %498, ptr %8, align 4
  br label %499

499:                                              ; preds = %495, %446, %333
  call void @llvm.lifetime.end.p0(i64 8, ptr %43) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %42) #6
  br label %553

500:                                              ; preds = %218
  %501 = call noundef nonnull align 4 dereferenceable(36) ptr @_ZNSt6vectorI3BoxSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %36, i64 noundef 0) #6
  %502 = call noundef i64 @_ZNKSt6vectorI3BoxSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %36) #6
  %503 = invoke noundef float @_ZL7sahCostPK3Boxm(ptr noundef %501, i64 noundef %502)
          to label %504 unwind label %549

504:                                              ; preds = %500
  %505 = load float, ptr %40, align 4, !tbaa !11
  %506 = fadd float %505, %503
  store float %506, ptr %40, align 4, !tbaa !11
  %507 = load float, ptr %19, align 4, !tbaa !11
  %508 = load float, ptr %18, align 4, !tbaa !11
  %509 = fdiv float %507, %508
  %510 = fpext float %509 to double
  %511 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.15, double noundef %510)
          to label %512 unwind label %549

512:                                              ; preds = %504
  %513 = load float, ptr %40, align 4, !tbaa !11
  %514 = load float, ptr %18, align 4, !tbaa !11
  %515 = fdiv float %513, %514
  %516 = fpext float %515 to double
  %517 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.16, double noundef %516)
          to label %518 unwind label %549

518:                                              ; preds = %512
  %519 = call noundef i64 @_ZNKSt6vectorI3BoxSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %36) #6
  %520 = trunc i64 %519 to i32
  %521 = load ptr, ptr %4, align 8, !tbaa !5
  %522 = call noundef i64 @_ZNKSt6vectorIjSaIjEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %521) #6
  %523 = udiv i64 %522, 3
  %524 = uitofp i64 %523 to double
  %525 = call noundef i64 @_ZNKSt6vectorI3BoxSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %36) #6
  %526 = uitofp i64 %525 to double
  %527 = fdiv double %524, %526
  %528 = load i64, ptr %41, align 8, !tbaa !9
  %529 = uitofp i64 %528 to double
  %530 = call noundef i64 @_ZNKSt6vectorI3BoxSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %36) #6
  %531 = uitofp i64 %530 to double
  %532 = fdiv double %529, %531
  %533 = load float, ptr %40, align 4, !tbaa !11
  %534 = load float, ptr %19, align 4, !tbaa !11
  %535 = fdiv float %533, %534
  %536 = fpext float %535 to double
  %537 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.17, i32 noundef %520, double noundef %527, double noundef %532, double noundef %536)
          to label %538 unwind label %549

538:                                              ; preds = %518
  %539 = load double, ptr %20, align 8, !tbaa !26
  %540 = load double, ptr %17, align 8, !tbaa !26
  %541 = fsub double %539, %540
  %542 = fmul double %541, 1.000000e+03
  %543 = load double, ptr %35, align 8, !tbaa !26
  %544 = load double, ptr %20, align 8, !tbaa !26
  %545 = fsub double %543, %544
  %546 = fmul double %545, 1.000000e+03
  %547 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.18, double noundef %542, double noundef %546)
          to label %548 unwind label %549

548:                                              ; preds = %538
  call void @llvm.lifetime.end.p0(i64 8, ptr %41) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %40) #6
  call void @_ZNSt6vectorI3BoxSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %38) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %38) #6
  call void @_ZNSt6vectorI3BoxSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %36) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %36) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #6
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %33) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %33) #6
  call void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %31) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %31) #6
  call void @_ZNSt6vectorI15meshopt_MeshletSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %29) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %29) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 36, ptr %15) #6
  call void @_ZNSt6vectorI3BoxSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %5) #6
  ret void

549:                                              ; preds = %538, %518, %512, %504, %500
  %550 = landingpad { ptr, i32 }
          cleanup
  %551 = extractvalue { ptr, i32 } %550, 0
  store ptr %551, ptr %7, align 8
  %552 = extractvalue { ptr, i32 } %550, 1
  store i32 %552, ptr %8, align 4
  br label %553

553:                                              ; preds = %549, %499
  call void @llvm.lifetime.end.p0(i64 8, ptr %41) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %40) #6
  call void @_ZNSt6vectorI3BoxSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %38) #6
  br label %554

554:                                              ; preds = %553, %263
  call void @llvm.lifetime.end.p0(i64 24, ptr %38) #6
  call void @_ZNSt6vectorI3BoxSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %36) #6
  br label %555

555:                                              ; preds = %554, %259
  call void @llvm.lifetime.end.p0(i64 24, ptr %36) #6
  br label %556

556:                                              ; preds = %555, %255
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #6
  br label %557

557:                                              ; preds = %556, %251
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %33) #6
  br label %558

558:                                              ; preds = %557, %247
  call void @llvm.lifetime.end.p0(i64 24, ptr %33) #6
  call void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %31) #6
  br label %559

559:                                              ; preds = %558, %243
  call void @llvm.lifetime.end.p0(i64 24, ptr %31) #6
  call void @_ZNSt6vectorI15meshopt_MeshletSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %29) #6
  br label %560

560:                                              ; preds = %559, %239
  call void @llvm.lifetime.end.p0(i64 24, ptr %29) #6
  br label %561

561:                                              ; preds = %560, %235
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %21) #6
  br label %562

562:                                              ; preds = %561, %231
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #6
  br label %563

563:                                              ; preds = %562, %227
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #6
  br label %564

564:                                              ; preds = %563, %223
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #6
  br label %565

565:                                              ; preds = %564, %219
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  br label %566

566:                                              ; preds = %565, %166
  call void @llvm.lifetime.end.p0(i64 36, ptr %15) #6
  br label %567

567:                                              ; preds = %566, %128
  call void @_ZNSt6vectorI3BoxSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #6
  br label %568

568:                                              ; preds = %567, %64
  call void @llvm.lifetime.end.p0(i64 24, ptr %5) #6
  br label %569

569:                                              ; preds = %568
  %570 = load ptr, ptr %7, align 8
  %571 = load i32, ptr %8, align 4
  %572 = insertvalue { ptr, i32 } poison, ptr %570, 0
  %573 = insertvalue { ptr, i32 } %572, i32 %571, 1
  resume { ptr, i32 } %573
}

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSaIhEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #3 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 #0 align 2

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSaIjEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #3 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 #0 align 2

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL9expandBoxR3Boxfff(ptr noundef nonnull align 4 dereferenceable(36), float noundef, float noundef, float noundef) #0

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

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @_ZL8mergeBoxR3BoxRKS_(ptr noundef nonnull align 4 dereferenceable(36), ptr noundef nonnull align 4 dereferenceable(36)) #3

declare noundef double @_Z9timestampv() #1

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_Z7surfaceRK3Box(ptr noundef nonnull align 4 dereferenceable(36)) #5

; Function Attrs: mustprogress uwtable
declare hidden noundef float @_ZL7sahCostPK3Boxm(ptr noundef, i64 noundef) #0

declare i64 @meshopt_buildMeshletsBound(i64 noundef, i64 noundef, i64 noundef) #1

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

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

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

declare i64 @meshopt_buildMeshletsSplit(ptr noundef, ptr noundef, ptr noundef, ptr noundef, i64 noundef, ptr noundef, i64 noundef, i64 noundef, i64 noundef, i64 noundef, i64 noundef, float noundef) #1

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

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

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

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

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

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"float", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"int", !7, i64 0}
!15 = !{!16, !12, i64 0}
!16 = !{!"_ZTS6Vertex", !12, i64 0, !12, i64 4, !12, i64 8, !12, i64 12, !12, i64 16, !12, i64 20, !12, i64 24, !12, i64 28}
!17 = !{!16, !12, i64 4}
!18 = !{!16, !12, i64 8}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = distinct !{!21, !20}
!22 = distinct !{!22, !20}
!23 = !{i64 0, i64 12, !24, i64 12, i64 12, !24, i64 24, i64 12, !24}
!24 = !{!7, !7, i64 0}
!25 = distinct !{!25, !20}
!26 = !{!27, !27, i64 0}
!27 = !{!"double", !7, i64 0}
!28 = !{!29, !29, i64 0}
!29 = !{!"bool", !7, i64 0}
!30 = !{!31, !14, i64 8}
!31 = !{!"_ZTS15meshopt_Meshlet", !14, i64 0, !14, i64 4, !14, i64 8, !14, i64 12}
!32 = !{!31, !14, i64 0}
!33 = distinct !{!33, !20}
!34 = distinct !{!34, !20}
!35 = !{!31, !14, i64 12}
!36 = !{!31, !14, i64 4}
!37 = distinct !{!37, !20}
!38 = distinct !{!38, !20}
!39 = distinct !{!39, !20}
!40 = distinct !{!40, !20}


; 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.28" = type { %"struct.std::_Vector_base.29" }
%"struct.std::_Vector_base.29" = type { %"struct.std::_Vector_base<Box, std::allocator<Box>>::_Vector_impl" }
%"struct.std::_Vector_base<Box, std::allocator<Box>>::_Vector_impl" = type { %"struct.std::_Vector_base<Box, std::allocator<Box>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Box, std::allocator<Box>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator.30" = type { i8 }
%struct.Box = type { [3 x float], [3 x float], [3 x float] }
%"class.std::vector.33" = type { %"struct.std::_Vector_base.34" }
%"struct.std::_Vector_base.34" = type { %"struct.std::_Vector_base<meshopt_Meshlet, std::allocator<meshopt_Meshlet>>::_Vector_impl" }
%"struct.std::_Vector_base<meshopt_Meshlet, std::allocator<meshopt_Meshlet>>::_Vector_impl" = type { %"struct.std::_Vector_base<meshopt_Meshlet, std::allocator<meshopt_Meshlet>>::_Vector_impl_data" }
%"struct.std::_Vector_base<meshopt_Meshlet, std::allocator<meshopt_Meshlet>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator.35" = type { i8 }
%"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.5" = type { %"struct.std::_Vector_base.6" }
%"struct.std::_Vector_base.6" = 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.7" = type { i8 }

@.str.15 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [56 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [39 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local void @_Z4clrtRKSt6vectorI6VertexSaIS0_EERKS_IjSaIjEE(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(24) %1) local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"class.std::vector.28", align 8
  %4 = alloca %"class.std::allocator.30", align 1
  %5 = alloca %struct.Box, align 4
  %6 = alloca %"class.std::vector.33", align 8
  %7 = alloca %"class.std::allocator.35", align 1
  %8 = alloca %"class.std::vector.0", align 8
  %9 = alloca %"class.std::allocator.2", align 1
  %10 = alloca %"class.std::vector.5", align 8
  %11 = alloca %"class.std::allocator.7", align 1
  %12 = alloca %"class.std::vector.28", align 8
  %13 = alloca %"class.std::allocator.30", align 1
  %14 = alloca %"class.std::vector.28", align 8
  %15 = alloca %"class.std::allocator.30", align 1
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %3) #7
  %16 = tail call noundef i64 @_ZNKSt6vectorIjSaIjEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #7
  %17 = udiv i64 %16, 3
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %4) #7
  call void @_ZNSaI3BoxEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #7
  invoke void @_ZNSt6vectorI3BoxSaIS0_EEC2EmRKS1_(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %17, ptr noundef nonnull align 1 dereferenceable(1) %4)
          to label %18 unwind label %23

18:                                               ; preds = %2
  call void @_ZNSt15__new_allocatorI3BoxED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #7
  %19 = call noundef i64 @_ZNKSt6vectorIjSaIjEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #7
  %.not = icmp ult i64 %19, 3
  br i1 %.not, label %._crit_edge, label %.lr.ph

._crit_edge:                                      ; preds = %.preheader163.preheader, %18
  call void @llvm.lifetime.start.p0(i64 36, ptr nonnull %5) #7
  %20 = call noundef nonnull align 4 dereferenceable(36) ptr @_ZNSt6vectorI3BoxSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef 0) #7
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(36) %5, ptr noundef nonnull align 4 dereferenceable(36) %20, i64 36, i1 false), !tbaa.struct !5
  %21 = call noundef i64 @_ZNKSt6vectorI3BoxSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #7
  %22 = icmp ugt i64 %21, 1
  br i1 %22, label %.lr.ph178, label %._crit_edge179

23:                                               ; preds = %2
  %24 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorI3BoxED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #7
  br label %305

.lr.ph:                                           ; preds = %18, %.preheader163.preheader
  %.0137175 = phi i64 [ %66, %.preheader163.preheader ], [ 0, %18 ]
  %25 = call noundef nonnull align 4 dereferenceable(36) ptr @_ZNSt6vectorI3BoxSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %.0137175) #7
  %26 = getelementptr inbounds i8, ptr %25, i64 16
  store <4 x float> <float 0x47EFFFFFE0000000, float 0x47EFFFFFE0000000, float 0x47EFFFFFE0000000, float 0xC7EFFFFFE0000000>, ptr %25, align 4, !tbaa !9
  %27 = getelementptr inbounds i8, ptr %25, i64 24
  %28 = getelementptr inbounds i8, ptr %25, i64 32
  store float 0.000000e+00, ptr %28, align 4, !tbaa !9
  store <4 x float> <float 0xC7EFFFFFE0000000, float 0xC7EFFFFFE0000000, float 0.000000e+00, float 0.000000e+00>, ptr %26, align 4, !tbaa !9
  %29 = mul nuw i64 %.0137175, 3
  %30 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %29) #7
  %31 = load i32, ptr %30, align 4, !tbaa !11
  %32 = zext i32 %31 to i64
  %33 = call noundef nonnull align 4 dereferenceable(32) ptr @_ZNKSt6vectorI6VertexSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %32) #7
  %34 = load float, ptr %33, align 4, !tbaa !13
  %35 = getelementptr inbounds i8, ptr %33, i64 4
  %36 = load float, ptr %35, align 4, !tbaa !15
  %37 = getelementptr inbounds i8, ptr %33, i64 8
  %38 = load float, ptr %37, align 4, !tbaa !16
  invoke void @_ZL9expandBoxR3Boxfff(ptr noundef nonnull align 4 dereferenceable(36) %25, float noundef %34, float noundef %36, float noundef %38)
          to label %39 unwind label %70

39:                                               ; preds = %.lr.ph
  %40 = add nuw i64 %29, 1
  %41 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %40) #7
  %42 = load i32, ptr %41, align 4, !tbaa !11
  %43 = zext i32 %42 to i64
  %44 = call noundef nonnull align 4 dereferenceable(32) ptr @_ZNKSt6vectorI6VertexSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %43) #7
  %45 = load float, ptr %44, align 4, !tbaa !13
  %46 = getelementptr inbounds i8, ptr %44, i64 4
  %47 = load float, ptr %46, align 4, !tbaa !15
  %48 = getelementptr inbounds i8, ptr %44, i64 8
  %49 = load float, ptr %48, align 4, !tbaa !16
  invoke void @_ZL9expandBoxR3Boxfff(ptr noundef nonnull align 4 dereferenceable(36) %25, float noundef %45, float noundef %47, float noundef %49)
          to label %50 unwind label %70

50:                                               ; preds = %39
  %51 = add nuw i64 %29, 2
  %52 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %51) #7
  %53 = load i32, ptr %52, align 4, !tbaa !11
  %54 = zext i32 %53 to i64
  %55 = call noundef nonnull align 4 dereferenceable(32) ptr @_ZNKSt6vectorI6VertexSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %54) #7
  %56 = load float, ptr %55, align 4, !tbaa !13
  %57 = getelementptr inbounds i8, ptr %55, i64 4
  %58 = load float, ptr %57, align 4, !tbaa !15
  %59 = getelementptr inbounds i8, ptr %55, i64 8
  %60 = load float, ptr %59, align 4, !tbaa !16
  invoke void @_ZL9expandBoxR3Boxfff(ptr noundef nonnull align 4 dereferenceable(36) %25, float noundef %56, float noundef %58, float noundef %60)
          to label %.preheader163.preheader unwind label %70

.preheader163.preheader:                          ; preds = %50
  %61 = load <2 x float>, ptr %27, align 4, !tbaa !9
  %62 = fdiv <2 x float> %61, <float 3.000000e+00, float 3.000000e+00>
  store <2 x float> %62, ptr %27, align 4, !tbaa !9
  %63 = getelementptr inbounds i8, ptr %25, i64 32
  %64 = load float, ptr %63, align 4, !tbaa !9
  %65 = fdiv float %64, 3.000000e+00
  store float %65, ptr %63, align 4, !tbaa !9
  %66 = add nuw nsw i64 %.0137175, 1
  %67 = call noundef i64 @_ZNKSt6vectorIjSaIjEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #7
  %68 = udiv i64 %67, 3
  %69 = icmp ult i64 %66, %68
  br i1 %69, label %.lr.ph, label %._crit_edge, !llvm.loop !17

70:                                               ; preds = %50, %39, %.lr.ph
  %71 = landingpad { ptr, i32 }
          cleanup
  br label %304

._crit_edge179:                                   ; preds = %.lr.ph178, %._crit_edge
  %72 = invoke noundef double @_Z9timestampv()
          to label %77 unwind label %113

.lr.ph178:                                        ; preds = %._crit_edge, %.lr.ph178
  %.0144176 = phi i64 [ %74, %.lr.ph178 ], [ 1, %._crit_edge ]
  %73 = call noundef nonnull align 4 dereferenceable(36) ptr @_ZNSt6vectorI3BoxSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %.0144176) #7
  call void @_ZL8mergeBoxR3BoxRKS_(ptr noundef nonnull align 4 dereferenceable(36) %5, ptr noundef nonnull align 4 dereferenceable(36) %73)
  %74 = add nuw i64 %.0144176, 1
  %75 = call noundef i64 @_ZNKSt6vectorI3BoxSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #7
  %76 = icmp ult i64 %74, %75
  br i1 %76, label %.lr.ph178, label %._crit_edge179, !llvm.loop !19

77:                                               ; preds = %._crit_edge179
  %78 = call noundef float @_Z7surfaceRK3Box(ptr noundef nonnull align 4 dereferenceable(36) %5)
  %79 = call noundef nonnull align 4 dereferenceable(36) ptr @_ZNSt6vectorI3BoxSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef 0) #7
  %80 = call noundef i64 @_ZNKSt6vectorI3BoxSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #7
  %81 = invoke noundef float @_ZL7sahCostPK3Boxm(ptr noundef nonnull %79, i64 noundef %80)
          to label %82 unwind label %115

82:                                               ; preds = %77
  %83 = invoke noundef double @_Z9timestampv()
          to label %84 unwind label %117

84:                                               ; preds = %82
  %85 = call noundef i64 @_ZNKSt6vectorIjSaIjEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #7
  %86 = invoke i64 @meshopt_buildMeshletsBound(i64 noundef %85, i64 noundef 64, i64 noundef 16)
          to label %87 unwind label %119

87:                                               ; preds = %84
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %6) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %7) #7
  call void @_ZNSaI15meshopt_MeshletEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #7
  invoke void @_ZNSt6vectorI15meshopt_MeshletSaIS0_EEC2EmRKS1_(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %86, ptr noundef nonnull align 1 dereferenceable(1) %7)
          to label %88 unwind label %121

88:                                               ; preds = %87
  call void @_ZNSt15__new_allocatorI15meshopt_MeshletED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %7) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %8) #7
  %89 = shl i64 %86, 6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %9) #7
  call void @_ZNSaIjEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %9) #7
  invoke void @_ZNSt6vectorIjSaIjEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %89, ptr noundef nonnull align 1 dereferenceable(1) %9)
          to label %90 unwind label %123

90:                                               ; preds = %88
  call void @_ZNSt15__new_allocatorIjED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %9) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %9) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %10) #7
  %91 = mul i64 %86, 192
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %11) #7
  call void @_ZNSaIhEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %11) #7
  invoke void @_ZNSt6vectorIhSaIhEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef %91, ptr noundef nonnull align 1 dereferenceable(1) %11)
          to label %92 unwind label %125

92:                                               ; preds = %90
  call void @_ZNSt15__new_allocatorIhED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %11) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %11) #7
  %93 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZNSt6vectorI15meshopt_MeshletSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef 0) #7
  %94 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef 0) #7
  %95 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorIhSaIhEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef 0) #7
  %96 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef 0) #7
  %97 = call noundef i64 @_ZNKSt6vectorIjSaIjEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #7
  %98 = call noundef nonnull align 4 dereferenceable(32) ptr @_ZNKSt6vectorI6VertexSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef 0) #7
  %99 = call noundef i64 @_ZNKSt6vectorI6VertexSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #7
  %100 = invoke i64 @meshopt_buildMeshletsSplit(ptr noundef nonnull %93, ptr noundef nonnull %94, ptr noundef nonnull %95, ptr noundef nonnull %96, i64 noundef %97, ptr noundef nonnull %98, i64 noundef %99, i64 noundef 32, i64 noundef 64, i64 noundef 16, i64 noundef 64, float noundef 5.000000e-01)
          to label %101 unwind label %127

101:                                              ; preds = %92
  invoke void @_ZNSt6vectorI15meshopt_MeshletSaIS0_EE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %100)
          to label %102 unwind label %127

102:                                              ; preds = %101
  %103 = invoke noundef double @_Z9timestampv()
          to label %104 unwind label %129

104:                                              ; preds = %102
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %12) #7
  %105 = call noundef i64 @_ZNKSt6vectorI15meshopt_MeshletSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %6) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %13) #7
  call void @_ZNSaI3BoxEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %13) #7
  invoke void @_ZNSt6vectorI3BoxSaIS0_EEC2EmRKS1_(ptr noundef nonnull align 8 dereferenceable(24) %12, i64 noundef %105, ptr noundef nonnull align 1 dereferenceable(1) %13)
          to label %106 unwind label %131

106:                                              ; preds = %104
  call void @_ZNSt15__new_allocatorI3BoxED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %13) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %13) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %14) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %15) #7
  call void @_ZNSaI3BoxEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %15) #7
  invoke void @_ZNSt6vectorI3BoxSaIS0_EEC2EmRKS1_(ptr noundef nonnull align 8 dereferenceable(24) %14, i64 noundef 64, ptr noundef nonnull align 1 dereferenceable(1) %15)
          to label %107 unwind label %133

107:                                              ; preds = %106
  call void @_ZNSt15__new_allocatorI3BoxED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %15) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %15) #7
  %108 = call noundef i64 @_ZNKSt6vectorI15meshopt_MeshletSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %6) #7
  %.not196 = icmp eq i64 %108, 0
  br i1 %.not196, label %._crit_edge194, label %.lr.ph193

._crit_edge194.loopexit:                          ; preds = %254
  %109 = uitofp i64 %261 to double
  br label %._crit_edge194

._crit_edge194:                                   ; preds = %._crit_edge194.loopexit, %107
  %.0142.lcssa = phi float [ 0.000000e+00, %107 ], [ %258, %._crit_edge194.loopexit ]
  %.0141.lcssa = phi double [ 0.000000e+00, %107 ], [ %109, %._crit_edge194.loopexit ]
  %110 = call noundef nonnull align 4 dereferenceable(36) ptr @_ZNSt6vectorI3BoxSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %12, i64 noundef 0) #7
  %111 = call noundef i64 @_ZNKSt6vectorI3BoxSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %12) #7
  %112 = invoke noundef float @_ZL7sahCostPK3Boxm(ptr noundef nonnull %110, i64 noundef %111)
          to label %267 unwind label %294

113:                                              ; preds = %._crit_edge179
  %114 = landingpad { ptr, i32 }
          cleanup
  br label %303

115:                                              ; preds = %77
  %116 = landingpad { ptr, i32 }
          cleanup
  br label %303

117:                                              ; preds = %82
  %118 = landingpad { ptr, i32 }
          cleanup
  br label %303

119:                                              ; preds = %84
  %120 = landingpad { ptr, i32 }
          cleanup
  br label %303

121:                                              ; preds = %87
  %122 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorI15meshopt_MeshletED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %7) #7
  br label %302

123:                                              ; preds = %88
  %124 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIjED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %9) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %9) #7
  br label %301

125:                                              ; preds = %90
  %126 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIhED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %11) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %11) #7
  br label %300

127:                                              ; preds = %101, %92
  %128 = landingpad { ptr, i32 }
          cleanup
  br label %299

129:                                              ; preds = %102
  %130 = landingpad { ptr, i32 }
          cleanup
  br label %299

131:                                              ; preds = %104
  %132 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorI3BoxED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %13) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %13) #7
  br label %298

133:                                              ; preds = %106
  %134 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorI3BoxED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %15) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %15) #7
  br label %297

.lr.ph193:                                        ; preds = %107, %254
  %.0140191 = phi i64 [ %262, %254 ], [ 0, %107 ]
  %.0141190 = phi i64 [ %261, %254 ], [ 0, %107 ]
  %.0142189 = phi float [ %258, %254 ], [ 0.000000e+00, %107 ]
  %135 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZNSt6vectorI15meshopt_MeshletSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %.0140191) #7
  %136 = call noundef nonnull align 4 dereferenceable(36) ptr @_ZNSt6vectorI3BoxSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %12, i64 noundef %.0140191) #7
  %137 = getelementptr inbounds i8, ptr %136, i64 8
  %138 = getelementptr inbounds i8, ptr %136, i64 12
  %139 = getelementptr inbounds i8, ptr %136, i64 16
  store <4 x float> <float 0x47EFFFFFE0000000, float 0x47EFFFFFE0000000, float 0x47EFFFFFE0000000, float 0xC7EFFFFFE0000000>, ptr %136, align 4, !tbaa !9
  %140 = getelementptr inbounds i8, ptr %136, i64 24
  %141 = getelementptr inbounds i8, ptr %136, i64 32
  store float 0.000000e+00, ptr %141, align 4, !tbaa !9
  store <4 x float> <float 0xC7EFFFFFE0000000, float 0xC7EFFFFFE0000000, float 0.000000e+00, float 0.000000e+00>, ptr %139, align 4, !tbaa !9
  %142 = getelementptr inbounds i8, ptr %135, i64 8
  %143 = load i32, ptr %142, align 4, !tbaa !20
  %.not197 = icmp eq i32 %143, 0
  br i1 %.not197, label %.preheader162, label %.lr.ph182

.preheader162.loopexit:                           ; preds = %167
  %144 = load <2 x float>, ptr %138, align 4, !tbaa !9
  %145 = load <2 x float>, ptr %136, align 4, !tbaa !9
  %.phi.trans.insert208 = getelementptr inbounds i8, ptr %136, i64 20
  %.pre209 = load float, ptr %.phi.trans.insert208, align 4, !tbaa !9
  %.pre210 = load float, ptr %137, align 4, !tbaa !9
  %146 = fadd <2 x float> %144, %145
  %147 = fadd float %.pre209, %.pre210
  br label %.preheader162

.preheader162:                                    ; preds = %.preheader162.loopexit, %.lr.ph193
  %148 = phi float [ %147, %.preheader162.loopexit ], [ 0.000000e+00, %.lr.ph193 ]
  %149 = phi <2 x float> [ %146, %.preheader162.loopexit ], [ zeroinitializer, %.lr.ph193 ]
  %150 = fmul <2 x float> %149, <float 5.000000e-01, float 5.000000e-01>
  store <2 x float> %150, ptr %140, align 4, !tbaa !9
  %151 = fmul float %148, 5.000000e-01
  %152 = getelementptr inbounds i8, ptr %136, i64 32
  store float %151, ptr %152, align 4, !tbaa !9
  %153 = getelementptr inbounds i8, ptr %135, i64 12
  %154 = load i32, ptr %153, align 4, !tbaa !22
  %.not198 = icmp eq i32 %154, 0
  br i1 %.not198, label %._crit_edge188, label %.lr.ph187

.lr.ph182:                                        ; preds = %.lr.ph193, %167
  %.0138180 = phi i64 [ %168, %167 ], [ 0, %.lr.ph193 ]
  %155 = load i32, ptr %135, align 4, !tbaa !23
  %156 = zext i32 %155 to i64
  %157 = add nuw nsw i64 %.0138180, %156
  %158 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %157) #7
  %159 = load i32, ptr %158, align 4, !tbaa !11
  %160 = zext i32 %159 to i64
  %161 = call noundef nonnull align 4 dereferenceable(32) ptr @_ZNKSt6vectorI6VertexSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %160) #7
  %162 = load float, ptr %161, align 4, !tbaa !13
  %163 = getelementptr inbounds i8, ptr %161, i64 4
  %164 = load float, ptr %163, align 4, !tbaa !15
  %165 = getelementptr inbounds i8, ptr %161, i64 8
  %166 = load float, ptr %165, align 4, !tbaa !16
  invoke void @_ZL9expandBoxR3Boxfff(ptr noundef nonnull align 4 dereferenceable(36) %136, float noundef %162, float noundef %164, float noundef %166)
          to label %167 unwind label %172

167:                                              ; preds = %.lr.ph182
  %168 = add nuw nsw i64 %.0138180, 1
  %169 = load i32, ptr %142, align 4, !tbaa !20
  %170 = zext i32 %169 to i64
  %171 = icmp ult i64 %168, %170
  br i1 %171, label %.lr.ph182, label %.preheader162.loopexit, !llvm.loop !24

172:                                              ; preds = %.lr.ph182
  %173 = landingpad { ptr, i32 }
          cleanup
  br label %296

.lr.ph187:                                        ; preds = %.preheader162
  %174 = getelementptr inbounds i8, ptr %135, i64 4
  br label %179

._crit_edge188:                                   ; preds = %.preheader.preheader, %.preheader162
  %175 = call noundef nonnull align 4 dereferenceable(36) ptr @_ZNSt6vectorI3BoxSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %14, i64 noundef 0) #7
  %176 = load i32, ptr %153, align 4, !tbaa !22
  %177 = zext i32 %176 to i64
  %178 = invoke noundef float @_ZL7sahCostPK3Boxm(ptr noundef nonnull %175, i64 noundef %177)
          to label %254 unwind label %265

179:                                              ; preds = %.lr.ph187, %.preheader.preheader
  %.0135186 = phi i64 [ 0, %.lr.ph187 ], [ %248, %.preheader.preheader ]
  %180 = call noundef nonnull align 4 dereferenceable(36) ptr @_ZNSt6vectorI3BoxSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %14, i64 noundef %.0135186) #7
  %181 = getelementptr inbounds i8, ptr %180, i64 16
  store <4 x float> <float 0x47EFFFFFE0000000, float 0x47EFFFFFE0000000, float 0x47EFFFFFE0000000, float 0xC7EFFFFFE0000000>, ptr %180, align 4, !tbaa !9
  %182 = getelementptr inbounds i8, ptr %180, i64 24
  %183 = getelementptr inbounds i8, ptr %180, i64 32
  store float 0.000000e+00, ptr %183, align 4, !tbaa !9
  store <4 x float> <float 0xC7EFFFFFE0000000, float 0xC7EFFFFFE0000000, float 0.000000e+00, float 0.000000e+00>, ptr %181, align 4, !tbaa !9
  %184 = mul nuw nsw i64 %.0135186, 3
  %185 = load i32, ptr %135, align 4, !tbaa !23
  %186 = load i32, ptr %174, align 4, !tbaa !25
  %187 = zext i32 %186 to i64
  %188 = add nuw nsw i64 %184, %187
  %189 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorIhSaIhEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef %188) #7
  %190 = load i8, ptr %189, align 1, !tbaa !6
  %191 = zext i8 %190 to i32
  %192 = add i32 %185, %191
  %193 = zext i32 %192 to i64
  %194 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %193) #7
  %195 = load i32, ptr %194, align 4, !tbaa !11
  %196 = zext i32 %195 to i64
  %197 = call noundef nonnull align 4 dereferenceable(32) ptr @_ZNKSt6vectorI6VertexSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %196) #7
  %198 = load float, ptr %197, align 4, !tbaa !13
  %199 = getelementptr inbounds i8, ptr %197, i64 4
  %200 = load float, ptr %199, align 4, !tbaa !15
  %201 = getelementptr inbounds i8, ptr %197, i64 8
  %202 = load float, ptr %201, align 4, !tbaa !16
  invoke void @_ZL9expandBoxR3Boxfff(ptr noundef nonnull align 4 dereferenceable(36) %180, float noundef %198, float noundef %200, float noundef %202)
          to label %203 unwind label %252

203:                                              ; preds = %179
  %204 = load i32, ptr %135, align 4, !tbaa !23
  %205 = load i32, ptr %174, align 4, !tbaa !25
  %206 = zext i32 %205 to i64
  %207 = add nuw nsw i64 %184, 1
  %208 = add nuw nsw i64 %207, %206
  %209 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorIhSaIhEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef %208) #7
  %210 = load i8, ptr %209, align 1, !tbaa !6
  %211 = zext i8 %210 to i32
  %212 = add i32 %204, %211
  %213 = zext i32 %212 to i64
  %214 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %213) #7
  %215 = load i32, ptr %214, align 4, !tbaa !11
  %216 = zext i32 %215 to i64
  %217 = call noundef nonnull align 4 dereferenceable(32) ptr @_ZNKSt6vectorI6VertexSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %216) #7
  %218 = load float, ptr %217, align 4, !tbaa !13
  %219 = getelementptr inbounds i8, ptr %217, i64 4
  %220 = load float, ptr %219, align 4, !tbaa !15
  %221 = getelementptr inbounds i8, ptr %217, i64 8
  %222 = load float, ptr %221, align 4, !tbaa !16
  invoke void @_ZL9expandBoxR3Boxfff(ptr noundef nonnull align 4 dereferenceable(36) %180, float noundef %218, float noundef %220, float noundef %222)
          to label %223 unwind label %252

223:                                              ; preds = %203
  %224 = load i32, ptr %135, align 4, !tbaa !23
  %225 = load i32, ptr %174, align 4, !tbaa !25
  %226 = zext i32 %225 to i64
  %227 = add nuw nsw i64 %184, 2
  %228 = add nuw nsw i64 %227, %226
  %229 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorIhSaIhEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef %228) #7
  %230 = load i8, ptr %229, align 1, !tbaa !6
  %231 = zext i8 %230 to i32
  %232 = add i32 %224, %231
  %233 = zext i32 %232 to i64
  %234 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %233) #7
  %235 = load i32, ptr %234, align 4, !tbaa !11
  %236 = zext i32 %235 to i64
  %237 = call noundef nonnull align 4 dereferenceable(32) ptr @_ZNKSt6vectorI6VertexSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %236) #7
  %238 = load float, ptr %237, align 4, !tbaa !13
  %239 = getelementptr inbounds i8, ptr %237, i64 4
  %240 = load float, ptr %239, align 4, !tbaa !15
  %241 = getelementptr inbounds i8, ptr %237, i64 8
  %242 = load float, ptr %241, align 4, !tbaa !16
  invoke void @_ZL9expandBoxR3Boxfff(ptr noundef nonnull align 4 dereferenceable(36) %180, float noundef %238, float noundef %240, float noundef %242)
          to label %.preheader.preheader unwind label %252

.preheader.preheader:                             ; preds = %223
  %243 = load <2 x float>, ptr %182, align 4, !tbaa !9
  %244 = fdiv <2 x float> %243, <float 3.000000e+00, float 3.000000e+00>
  store <2 x float> %244, ptr %182, align 4, !tbaa !9
  %245 = getelementptr inbounds i8, ptr %180, i64 32
  %246 = load float, ptr %245, align 4, !tbaa !9
  %247 = fdiv float %246, 3.000000e+00
  store float %247, ptr %245, align 4, !tbaa !9
  %248 = add nuw nsw i64 %.0135186, 1
  %249 = load i32, ptr %153, align 4, !tbaa !22
  %250 = zext i32 %249 to i64
  %251 = icmp ult i64 %248, %250
  br i1 %251, label %179, label %._crit_edge188, !llvm.loop !26

252:                                              ; preds = %223, %203, %179
  %253 = landingpad { ptr, i32 }
          cleanup
  br label %296

254:                                              ; preds = %._crit_edge188
  %255 = fadd float %.0142189, %178
  %256 = call noundef nonnull align 4 dereferenceable(36) ptr @_ZNSt6vectorI3BoxSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %12, i64 noundef %.0140191) #7
  %257 = call noundef float @_Z7surfaceRK3Box(ptr noundef nonnull align 4 dereferenceable(36) %256)
  %258 = fsub float %255, %257
  %259 = load i32, ptr %142, align 4, !tbaa !20
  %260 = zext i32 %259 to i64
  %261 = add i64 %.0141190, %260
  %262 = add nuw i64 %.0140191, 1
  %263 = call noundef i64 @_ZNKSt6vectorI15meshopt_MeshletSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %6) #7
  %264 = icmp ult i64 %262, %263
  br i1 %264, label %.lr.ph193, label %._crit_edge194.loopexit, !llvm.loop !27

265:                                              ; preds = %._crit_edge188
  %266 = landingpad { ptr, i32 }
          cleanup
  br label %296

267:                                              ; preds = %._crit_edge194
  %268 = fadd float %.0142.lcssa, %112
  %269 = fdiv float %81, %78
  %270 = fpext float %269 to double
  %271 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.15, double noundef %270)
  %272 = fdiv float %268, %78
  %273 = fpext float %272 to double
  %274 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.16, double noundef %273)
  %275 = call noundef i64 @_ZNKSt6vectorI3BoxSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %12) #7
  %276 = trunc i64 %275 to i32
  %277 = call noundef i64 @_ZNKSt6vectorIjSaIjEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #7
  %278 = udiv i64 %277, 3
  %279 = uitofp nneg i64 %278 to double
  %280 = call noundef i64 @_ZNKSt6vectorI3BoxSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %12) #7
  %281 = uitofp i64 %280 to double
  %282 = fdiv double %279, %281
  %283 = call noundef i64 @_ZNKSt6vectorI3BoxSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %12) #7
  %284 = uitofp i64 %283 to double
  %285 = fdiv double %.0141.lcssa, %284
  %286 = fdiv float %268, %81
  %287 = fpext float %286 to double
  %288 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.17, i32 noundef %276, double noundef %282, double noundef %285, double noundef %287)
  %289 = fsub double %83, %72
  %290 = fmul double %289, 1.000000e+03
  %291 = fsub double %103, %83
  %292 = fmul double %291, 1.000000e+03
  %293 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.18, double noundef %290, double noundef %292)
  call void @_ZNSt6vectorI3BoxSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %14) #7
  call void @_ZNSt6vectorI3BoxSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %12) #7
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %10) #7
  call void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #7
  call void @_ZNSt6vectorI15meshopt_MeshletSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #7
  call void @llvm.lifetime.end.p0(i64 36, ptr nonnull %5) #7
  call void @_ZNSt6vectorI3BoxSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #7
  ret void

294:                                              ; preds = %._crit_edge194
  %295 = landingpad { ptr, i32 }
          cleanup
  br label %296

296:                                              ; preds = %172, %252, %265, %294
  %.pn.pn = phi { ptr, i32 } [ %295, %294 ], [ %173, %172 ], [ %253, %252 ], [ %266, %265 ]
  call void @_ZNSt6vectorI3BoxSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #7
  br label %297

297:                                              ; preds = %296, %133
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %296 ], [ %134, %133 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %14) #7
  call void @_ZNSt6vectorI3BoxSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #7
  br label %298

298:                                              ; preds = %297, %131
  %.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn, %297 ], [ %132, %131 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %12) #7
  br label %299

299:                                              ; preds = %129, %298, %127
  %.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %128, %127 ], [ %.pn.pn.pn.pn, %298 ], [ %130, %129 ]
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #7
  br label %300

300:                                              ; preds = %299, %125
  %.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn.pn.pn, %299 ], [ %126, %125 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %10) #7
  call void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #7
  br label %301

301:                                              ; preds = %300, %123
  %.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn.pn.pn.pn, %300 ], [ %124, %123 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #7
  call void @_ZNSt6vectorI15meshopt_MeshletSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #7
  br label %302

302:                                              ; preds = %301, %121
  %.pn.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn.pn.pn.pn.pn, %301 ], [ %122, %121 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #7
  br label %303

303:                                              ; preds = %115, %119, %302, %117, %113
  %.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %114, %113 ], [ %116, %115 ], [ %118, %117 ], [ %.pn.pn.pn.pn.pn.pn.pn.pn.pn, %302 ], [ %120, %119 ]
  call void @llvm.lifetime.end.p0(i64 36, ptr nonnull %5) #7
  br label %304

304:                                              ; preds = %303, %70
  %.pn158 = phi { ptr, i32 } [ %71, %70 ], [ %.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn, %303 ]
  call void @_ZNSt6vectorI3BoxSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #7
  br label %305

305:                                              ; preds = %304, %23
  %.pn158.pn = phi { ptr, i32 } [ %.pn158, %304 ], [ %24, %23 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #7
  resume { ptr, i32 } %.pn158.pn
}

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSaIhEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #3 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 #0 align 2

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSaIjEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #3 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 #0 align 2

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL9expandBoxR3Boxfff(ptr noundef nonnull align 4 dereferenceable(36), float noundef, float noundef, float noundef) local_unnamed_addr #0

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

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @_ZL8mergeBoxR3BoxRKS_(ptr noundef nonnull align 4 dereferenceable(36), ptr noundef nonnull align 4 dereferenceable(36)) local_unnamed_addr #3

declare noundef double @_Z9timestampv() local_unnamed_addr #5

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_Z7surfaceRK3Box(ptr noundef nonnull align 4 dereferenceable(36)) local_unnamed_addr #6

; Function Attrs: mustprogress uwtable
declare hidden noundef float @_ZL7sahCostPK3Boxm(ptr noundef, i64 noundef) local_unnamed_addr #0

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


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