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

; 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"

%struct.Vertex = type { float, float, float, float, float, float, float, float }
%struct.PackedVertexOct = type { i16, i16, i16, i8, i8, i16, i16 }

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

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

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

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

declare zeroext i16 @meshopt_quantizeHalf(float noundef) #2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z21meshopt_quantizeSnormfi(float noundef, i32 noundef) #3

; Function Attrs: mustprogress uwtable
define dso_local void @_Z8packMeshRSt6vectorI15PackedVertexOctSaIS0_EERKS_I6VertexSaIS4_EE(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(24) %1) #4 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i64, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca float, align 4
  %9 = alloca float, align 4
  %10 = alloca float, align 4
  %11 = alloca float, align 4
  %12 = alloca float, align 4
  %13 = alloca float, 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 8, ptr %5) #6
  store i64 0, ptr %5, align 8, !tbaa !9
  br label %14

14:                                               ; preds = %126, %2
  %15 = load i64, ptr %5, align 8, !tbaa !9
  %16 = load ptr, ptr %4, align 8, !tbaa !5
  %17 = call noundef i64 @_ZNKSt6vectorI6VertexSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %16) #6
  %18 = icmp ult i64 %15, %17
  br i1 %18, label %20, label %19

19:                                               ; preds = %14
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #6
  br label %129

20:                                               ; preds = %14
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #6
  %21 = load ptr, ptr %4, align 8, !tbaa !5
  %22 = load i64, ptr %5, align 8, !tbaa !9
  %23 = call noundef nonnull align 4 dereferenceable(32) ptr @_ZNKSt6vectorI6VertexSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %21, i64 noundef %22) #6
  store ptr %23, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #6
  %24 = load ptr, ptr %3, align 8, !tbaa !5
  %25 = load i64, ptr %5, align 8, !tbaa !9
  %26 = call noundef nonnull align 2 dereferenceable(12) ptr @_ZNSt6vectorI15PackedVertexOctSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %24, i64 noundef %25) #6
  store ptr %26, ptr %7, align 8, !tbaa !5
  %27 = load ptr, ptr %6, align 8, !tbaa !5
  %28 = getelementptr inbounds %struct.Vertex, ptr %27, i32 0, i32 0
  %29 = load float, ptr %28, align 4, !tbaa !11
  %30 = call zeroext i16 @meshopt_quantizeHalf(float noundef %29)
  %31 = load ptr, ptr %7, align 8, !tbaa !5
  %32 = getelementptr inbounds %struct.PackedVertexOct, ptr %31, i32 0, i32 0
  store i16 %30, ptr %32, align 2, !tbaa !14
  %33 = load ptr, ptr %6, align 8, !tbaa !5
  %34 = getelementptr inbounds %struct.Vertex, ptr %33, i32 0, i32 1
  %35 = load float, ptr %34, align 4, !tbaa !17
  %36 = call zeroext i16 @meshopt_quantizeHalf(float noundef %35)
  %37 = load ptr, ptr %7, align 8, !tbaa !5
  %38 = getelementptr inbounds %struct.PackedVertexOct, ptr %37, i32 0, i32 1
  store i16 %36, ptr %38, align 2, !tbaa !18
  %39 = load ptr, ptr %6, align 8, !tbaa !5
  %40 = getelementptr inbounds %struct.Vertex, ptr %39, i32 0, i32 2
  %41 = load float, ptr %40, align 4, !tbaa !19
  %42 = call zeroext i16 @meshopt_quantizeHalf(float noundef %41)
  %43 = load ptr, ptr %7, align 8, !tbaa !5
  %44 = getelementptr inbounds %struct.PackedVertexOct, ptr %43, i32 0, i32 2
  store i16 %42, ptr %44, align 2, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
  %45 = load ptr, ptr %6, align 8, !tbaa !5
  %46 = getelementptr inbounds %struct.Vertex, ptr %45, i32 0, i32 3
  %47 = load float, ptr %46, align 4, !tbaa !21
  %48 = call float @llvm.fabs.f32(float %47)
  %49 = load ptr, ptr %6, align 8, !tbaa !5
  %50 = getelementptr inbounds %struct.Vertex, ptr %49, i32 0, i32 4
  %51 = load float, ptr %50, align 4, !tbaa !22
  %52 = call float @llvm.fabs.f32(float %51)
  %53 = fadd float %48, %52
  %54 = load ptr, ptr %6, align 8, !tbaa !5
  %55 = getelementptr inbounds %struct.Vertex, ptr %54, i32 0, i32 5
  %56 = load float, ptr %55, align 4, !tbaa !23
  %57 = call float @llvm.fabs.f32(float %56)
  %58 = fadd float %53, %57
  store float %58, ptr %8, align 4, !tbaa !24
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
  %59 = load ptr, ptr %6, align 8, !tbaa !5
  %60 = getelementptr inbounds %struct.Vertex, ptr %59, i32 0, i32 3
  %61 = load float, ptr %60, align 4, !tbaa !21
  %62 = load float, ptr %8, align 4, !tbaa !24
  %63 = fdiv float %61, %62
  store float %63, ptr %9, align 4, !tbaa !24
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
  %64 = load ptr, ptr %6, align 8, !tbaa !5
  %65 = getelementptr inbounds %struct.Vertex, ptr %64, i32 0, i32 4
  %66 = load float, ptr %65, align 4, !tbaa !22
  %67 = load float, ptr %8, align 4, !tbaa !24
  %68 = fdiv float %66, %67
  store float %68, ptr %10, align 4, !tbaa !24
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
  %69 = load ptr, ptr %6, align 8, !tbaa !5
  %70 = getelementptr inbounds %struct.Vertex, ptr %69, i32 0, i32 5
  %71 = load float, ptr %70, align 4, !tbaa !23
  store float %71, ptr %11, align 4, !tbaa !24
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #6
  %72 = load float, ptr %11, align 4, !tbaa !24
  %73 = fcmp oge float %72, 0.000000e+00
  br i1 %73, label %74, label %76

74:                                               ; preds = %20
  %75 = load float, ptr %9, align 4, !tbaa !24
  br label %86

76:                                               ; preds = %20
  %77 = load float, ptr %10, align 4, !tbaa !24
  %78 = call float @llvm.fabs.f32(float %77)
  %79 = fsub float 1.000000e+00, %78
  %80 = load float, ptr %9, align 4, !tbaa !24
  %81 = fcmp oge float %80, 0.000000e+00
  %82 = zext i1 %81 to i64
  %83 = select i1 %81, i32 1, i32 -1
  %84 = sitofp i32 %83 to float
  %85 = fmul float %79, %84
  br label %86

86:                                               ; preds = %76, %74
  %87 = phi float [ %75, %74 ], [ %85, %76 ]
  store float %87, ptr %12, align 4, !tbaa !24
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #6
  %88 = load float, ptr %11, align 4, !tbaa !24
  %89 = fcmp oge float %88, 0.000000e+00
  br i1 %89, label %90, label %92

90:                                               ; preds = %86
  %91 = load float, ptr %10, align 4, !tbaa !24
  br label %102

92:                                               ; preds = %86
  %93 = load float, ptr %9, align 4, !tbaa !24
  %94 = call float @llvm.fabs.f32(float %93)
  %95 = fsub float 1.000000e+00, %94
  %96 = load float, ptr %10, align 4, !tbaa !24
  %97 = fcmp oge float %96, 0.000000e+00
  %98 = zext i1 %97 to i64
  %99 = select i1 %97, i32 1, i32 -1
  %100 = sitofp i32 %99 to float
  %101 = fmul float %95, %100
  br label %102

102:                                              ; preds = %92, %90
  %103 = phi float [ %91, %90 ], [ %101, %92 ]
  store float %103, ptr %13, align 4, !tbaa !24
  %104 = load float, ptr %12, align 4, !tbaa !24
  %105 = call noundef i32 @_Z21meshopt_quantizeSnormfi(float noundef %104, i32 noundef 8)
  %106 = trunc i32 %105 to i8
  %107 = load ptr, ptr %7, align 8, !tbaa !5
  %108 = getelementptr inbounds %struct.PackedVertexOct, ptr %107, i32 0, i32 3
  store i8 %106, ptr %108, align 2, !tbaa !25
  %109 = load float, ptr %13, align 4, !tbaa !24
  %110 = call noundef i32 @_Z21meshopt_quantizeSnormfi(float noundef %109, i32 noundef 8)
  %111 = trunc i32 %110 to i8
  %112 = load ptr, ptr %7, align 8, !tbaa !5
  %113 = getelementptr inbounds %struct.PackedVertexOct, ptr %112, i32 0, i32 4
  store i8 %111, ptr %113, align 1, !tbaa !26
  %114 = load ptr, ptr %6, align 8, !tbaa !5
  %115 = getelementptr inbounds %struct.Vertex, ptr %114, i32 0, i32 6
  %116 = load float, ptr %115, align 4, !tbaa !27
  %117 = call zeroext i16 @meshopt_quantizeHalf(float noundef %116)
  %118 = load ptr, ptr %7, align 8, !tbaa !5
  %119 = getelementptr inbounds %struct.PackedVertexOct, ptr %118, i32 0, i32 5
  store i16 %117, ptr %119, align 2, !tbaa !28
  %120 = load ptr, ptr %6, align 8, !tbaa !5
  %121 = getelementptr inbounds %struct.Vertex, ptr %120, i32 0, i32 7
  %122 = load float, ptr %121, align 4, !tbaa !29
  %123 = call zeroext i16 @meshopt_quantizeHalf(float noundef %122)
  %124 = load ptr, ptr %7, align 8, !tbaa !5
  %125 = getelementptr inbounds %struct.PackedVertexOct, ptr %124, i32 0, i32 6
  store i16 %123, ptr %125, align 2, !tbaa !30
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #6
  br label %126

126:                                              ; preds = %102
  %127 = load i64, ptr %5, align 8, !tbaa !9
  %128 = add i64 %127, 1
  store i64 %128, ptr %5, align 8, !tbaa !9
  br label %14, !llvm.loop !31

129:                                              ; preds = %19
  ret void
}

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fabs.f32(float) #5

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 #4 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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, !13, i64 0}
!12 = !{!"_ZTS6Vertex", !13, i64 0, !13, i64 4, !13, i64 8, !13, i64 12, !13, i64 16, !13, i64 20, !13, i64 24, !13, i64 28}
!13 = !{!"float", !7, i64 0}
!14 = !{!15, !16, i64 0}
!15 = !{!"_ZTS15PackedVertexOct", !16, i64 0, !16, i64 2, !16, i64 4, !7, i64 6, !7, i64 7, !16, i64 8, !16, i64 10}
!16 = !{!"short", !7, i64 0}
!17 = !{!12, !13, i64 4}
!18 = !{!15, !16, i64 2}
!19 = !{!12, !13, i64 8}
!20 = !{!15, !16, i64 4}
!21 = !{!12, !13, i64 12}
!22 = !{!12, !13, i64 16}
!23 = !{!12, !13, i64 20}
!24 = !{!13, !13, i64 0}
!25 = !{!15, !7, i64 6}
!26 = !{!15, !7, i64 7}
!27 = !{!12, !13, i64 24}
!28 = !{!15, !16, i64 8}
!29 = !{!12, !13, i64 28}
!30 = !{!15, !16, i64 10}
!31 = distinct !{!31, !32}
!32 = !{!"llvm.loop.mustprogress"}


; 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"

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

declare zeroext i16 @meshopt_quantizeHalf(float noundef) local_unnamed_addr #1

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z21meshopt_quantizeSnormfi(float noundef, i32 noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
define dso_local void @_Z8packMeshRSt6vectorI15PackedVertexOctSaIS0_EERKS_I6VertexSaIS4_EE(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(24) %1) local_unnamed_addr #3 {
  %3 = tail call noundef i64 @_ZNKSt6vectorI6VertexSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #6
  %.not = icmp eq i64 %3, 0
  br i1 %.not, label %._crit_edge, label %.lr.ph

._crit_edge:                                      ; preds = %.thread, %2
  ret void

.lr.ph:                                           ; preds = %2, %.thread
  %.036 = phi i64 [ %53, %.thread ], [ 0, %2 ]
  %4 = tail call noundef nonnull align 4 dereferenceable(32) ptr @_ZNKSt6vectorI6VertexSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %.036) #6
  %5 = tail call noundef nonnull align 2 dereferenceable(12) ptr @_ZNSt6vectorI15PackedVertexOctSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %.036) #6
  %6 = load float, ptr %4, align 4, !tbaa !5
  %7 = tail call zeroext i16 @meshopt_quantizeHalf(float noundef %6)
  store i16 %7, ptr %5, align 2, !tbaa !10
  %8 = getelementptr inbounds i8, ptr %4, i64 4
  %9 = load float, ptr %8, align 4, !tbaa !13
  %10 = tail call zeroext i16 @meshopt_quantizeHalf(float noundef %9)
  %11 = getelementptr inbounds i8, ptr %5, i64 2
  store i16 %10, ptr %11, align 2, !tbaa !14
  %12 = getelementptr inbounds i8, ptr %4, i64 8
  %13 = load float, ptr %12, align 4, !tbaa !15
  %14 = tail call zeroext i16 @meshopt_quantizeHalf(float noundef %13)
  %15 = getelementptr inbounds i8, ptr %5, i64 4
  store i16 %14, ptr %15, align 2, !tbaa !16
  %16 = getelementptr inbounds i8, ptr %4, i64 12
  %17 = load <2 x float>, ptr %16, align 4, !tbaa !17
  %18 = tail call <2 x float> @llvm.fabs.v2f32(<2 x float> %17)
  %shift = shufflevector <2 x float> %18, <2 x float> poison, <2 x i32> <i32 1, i32 poison>
  %19 = fadd <2 x float> %18, %shift
  %20 = extractelement <2 x float> %19, i64 0
  %21 = getelementptr inbounds i8, ptr %4, i64 20
  %22 = load float, ptr %21, align 4, !tbaa !18
  %23 = tail call float @llvm.fabs.f32(float %22)
  %24 = fadd float %20, %23
  %25 = insertelement <2 x float> poison, float %24, i64 0
  %26 = shufflevector <2 x float> %25, <2 x float> poison, <2 x i32> zeroinitializer
  %27 = fdiv <2 x float> %17, %26
  %28 = fcmp ult float %22, 0.000000e+00
  br i1 %28, label %29, label %.thread

29:                                               ; preds = %.lr.ph
  %30 = tail call <2 x float> @llvm.fabs.v2f32(<2 x float> %27)
  %31 = fcmp oge <2 x float> %27, zeroinitializer
  %32 = fsub <2 x float> <float 1.000000e+00, float 1.000000e+00>, %30
  %33 = shufflevector <2 x float> %32, <2 x float> poison, <2 x i32> <i32 1, i32 0>
  %34 = fneg <2 x float> %33
  %35 = select <2 x i1> %31, <2 x float> %33, <2 x float> %34
  br label %.thread

.thread:                                          ; preds = %.lr.ph, %29
  %36 = phi <2 x float> [ %35, %29 ], [ %27, %.lr.ph ]
  %37 = extractelement <2 x float> %36, i64 0
  %38 = tail call noundef i32 @_Z21meshopt_quantizeSnormfi(float noundef %37, i32 noundef 8)
  %39 = trunc i32 %38 to i8
  %40 = getelementptr inbounds i8, ptr %5, i64 6
  store i8 %39, ptr %40, align 2, !tbaa !19
  %41 = extractelement <2 x float> %36, i64 1
  %42 = tail call noundef i32 @_Z21meshopt_quantizeSnormfi(float noundef %41, i32 noundef 8)
  %43 = trunc i32 %42 to i8
  %44 = getelementptr inbounds i8, ptr %5, i64 7
  store i8 %43, ptr %44, align 1, !tbaa !20
  %45 = getelementptr inbounds i8, ptr %4, i64 24
  %46 = load float, ptr %45, align 4, !tbaa !21
  %47 = tail call zeroext i16 @meshopt_quantizeHalf(float noundef %46)
  %48 = getelementptr inbounds i8, ptr %5, i64 8
  store i16 %47, ptr %48, align 2, !tbaa !22
  %49 = getelementptr inbounds i8, ptr %4, i64 28
  %50 = load float, ptr %49, align 4, !tbaa !23
  %51 = tail call zeroext i16 @meshopt_quantizeHalf(float noundef %50)
  %52 = getelementptr inbounds i8, ptr %5, i64 10
  store i16 %51, ptr %52, align 2, !tbaa !24
  %53 = add nuw i64 %.036, 1
  %54 = tail call noundef i64 @_ZNKSt6vectorI6VertexSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #6
  %55 = icmp ult i64 %53, %54
  br i1 %55, label %.lr.ph, label %._crit_edge, !llvm.loop !25
}

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

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fabs.f32(float) #4

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare <2 x float> @llvm.fabs.v2f32(<2 x float>) #5

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

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

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


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass,VectorCombinePass