; LLVM IR from erayzesen/QuarkPhysics :: QuarkPhysics/qbody.ll (ZN5QBody15ComputeFrictionEPS_S0_R7QVectorfS2_)

; 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.QVector = type { float, float }
%class.QBody = type <{ ptr, float, float, ptr, %struct.QVector, %struct.QVector, float, float, %class.QAABB, i32, i8, i8, i8, i8, float, i32, i8, [3 x i8], float, i8, i8, [2 x i8], %struct.QVector, float, float, float, float, float, i32, i32, i8, i8, i8, i8, i32, i32, i32, i8, [3 x i8], %"class.std::function", %"class.std::function", %"class.std::function.0", i8, [7 x i8], %"class.std::vector", i32, i8, [3 x i8] }>
%class.QAABB = type { %struct.QVector, %struct.QVector, %struct.QVector, float }
%"class.std::function" = type { %"class.std::_Function_base", ptr }
%"class.std::_Function_base" = type { %"union.std::_Any_data", ptr }
%"union.std::_Any_data" = type { %"union.std::_Nocopy_types" }
%"union.std::_Nocopy_types" = type { { i64, i64 } }
%"class.std::function.0" = type { %"class.std::_Function_base", ptr }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<QMesh *, std::allocator<QMesh *>>::_Vector_impl" }
%"struct.std::_Vector_base<QMesh *, std::allocator<QMesh *>>::_Vector_impl" = type { %"struct.std::_Vector_base<QMesh *, std::allocator<QMesh *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<QMesh *, std::allocator<QMesh *>>::_Vector_impl_data" = type { ptr, ptr, ptr }

; Function Attrs: mustprogress uwtable
declare dso_local <2 x float> @_ZN7QVector4ZeroEv() #0 align 2

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local <2 x float> @_ZN5QBody15ComputeFrictionEPS_S0_R7QVectorfS2_(ptr noundef %0, ptr noundef %1, ptr noundef nonnull align 4 dereferenceable(8) %2, float noundef %3, ptr noundef nonnull align 4 dereferenceable(8) %4) #0 align 2 {
  %6 = alloca %struct.QVector, align 4
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca float, align 4
  %11 = alloca ptr, align 8
  %12 = alloca %struct.QVector, align 4
  %13 = alloca %struct.QVector, align 4
  %14 = alloca %struct.QVector, align 4
  %15 = alloca %struct.QVector, align 4
  %16 = alloca %struct.QVector, align 4
  %17 = alloca %struct.QVector, align 4
  %18 = alloca float, align 4
  %19 = alloca %struct.QVector, align 4
  %20 = alloca float, align 4
  %21 = alloca float, align 4
  %22 = alloca %struct.QVector, align 4
  %23 = alloca %struct.QVector, align 4
  %24 = alloca %struct.QVector, align 4
  %25 = alloca %struct.QVector, align 4
  %26 = alloca %struct.QVector, align 4
  store ptr %0, ptr %7, align 8, !tbaa !5
  store ptr %1, ptr %8, align 8, !tbaa !5
  store ptr %2, ptr %9, align 8, !tbaa !5
  store float %3, ptr %10, align 4, !tbaa !9
  store ptr %4, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  %27 = load ptr, ptr %11, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %13, ptr align 4 %27, i64 8, i1 false), !tbaa.struct !11
  %28 = load ptr, ptr %11, align 8, !tbaa !5
  %29 = load ptr, ptr %9, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %15, ptr align 4 %29, i64 8, i1 false), !tbaa.struct !11
  %30 = load <2 x float>, ptr %15, align 4
  %31 = call noundef float @_ZNK7QVector3DotES_(ptr noundef nonnull align 4 dereferenceable(8) %28, <2 x float> %30)
  %32 = load ptr, ptr %9, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %16, ptr align 4 %32, i64 8, i1 false), !tbaa.struct !11
  %33 = load <2 x float>, ptr %16, align 4
  %34 = call <2 x float> @_Zmlf7QVector(float noundef %31, <2 x float> %33)
  store <2 x float> %34, ptr %14, align 4
  %35 = load <2 x float>, ptr %13, align 4
  %36 = load <2 x float>, ptr %14, align 4
  %37 = call <2 x float> @_Zmi7QVectorS_(<2 x float> %35, <2 x float> %36)
  store <2 x float> %37, ptr %12, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #6
  %38 = call <2 x float> @_ZNK7QVector10NormalizedEv(ptr noundef nonnull align 4 dereferenceable(8) %12)
  store <2 x float> %38, ptr %17, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %12, ptr align 4 %17, i64 8, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #6
  %39 = load ptr, ptr %11, align 8, !tbaa !5
  %40 = call <2 x float> @_ZNK7QVectorngEv(ptr noundef nonnull align 4 dereferenceable(8) %12)
  store <2 x float> %40, ptr %19, align 4
  %41 = load <2 x float>, ptr %19, align 4
  %42 = call noundef float @_ZNK7QVector3DotES_(ptr noundef nonnull align 4 dereferenceable(8) %39, <2 x float> %41)
  store float %42, ptr %18, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #6
  %43 = load ptr, ptr %7, align 8, !tbaa !5
  %44 = getelementptr inbounds %class.QBody, ptr %43, i32 0, i32 23
  %45 = load float, ptr %44, align 8, !tbaa !12
  %46 = load ptr, ptr %8, align 8, !tbaa !5
  %47 = getelementptr inbounds %class.QBody, ptr %46, i32 0, i32 23
  %48 = load float, ptr %47, align 8, !tbaa !12
  %49 = fcmp olt float %45, %48
  br i1 %49, label %50, label %54

50:                                               ; preds = %5
  %51 = load ptr, ptr %7, align 8, !tbaa !5
  %52 = getelementptr inbounds %class.QBody, ptr %51, i32 0, i32 23
  %53 = load float, ptr %52, align 8, !tbaa !12
  br label %58

54:                                               ; preds = %5
  %55 = load ptr, ptr %8, align 8, !tbaa !5
  %56 = getelementptr inbounds %class.QBody, ptr %55, i32 0, i32 23
  %57 = load float, ptr %56, align 8, !tbaa !12
  br label %58

58:                                               ; preds = %54, %50
  %59 = phi float [ %53, %50 ], [ %57, %54 ]
  store float %59, ptr %20, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #6
  %60 = load ptr, ptr %7, align 8, !tbaa !5
  %61 = getelementptr inbounds %class.QBody, ptr %60, i32 0, i32 24
  %62 = load float, ptr %61, align 4, !tbaa !28
  %63 = load ptr, ptr %8, align 8, !tbaa !5
  %64 = getelementptr inbounds %class.QBody, ptr %63, i32 0, i32 24
  %65 = load float, ptr %64, align 4, !tbaa !28
  %66 = fmul float %62, %65
  %67 = call noundef float @_ZSt4sqrtf(float noundef %66)
  store float %67, ptr %21, align 4, !tbaa !9
  %68 = call <2 x float> @_ZN7QVector4ZeroEv()
  store <2 x float> %68, ptr %6, align 4
  %69 = load float, ptr %18, align 4, !tbaa !9
  %70 = call noundef float @_ZSt3absf(float noundef %69)
  %71 = load float, ptr %10, align 4, !tbaa !9
  %72 = load float, ptr %21, align 4, !tbaa !9
  %73 = fmul float %71, %72
  %74 = fcmp olt float %70, %73
  br i1 %74, label %75, label %79

75:                                               ; preds = %58
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %23, ptr align 4 %12, i64 8, i1 false), !tbaa.struct !11
  %76 = load float, ptr %18, align 4, !tbaa !9
  %77 = load <2 x float>, ptr %23, align 4
  %78 = call <2 x float> @_Zml7QVectorf(<2 x float> %77, float noundef %76)
  store <2 x float> %78, ptr %22, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %6, ptr align 4 %22, i64 8, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #6
  br label %87

79:                                               ; preds = %58
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %26, ptr align 4 %12, i64 8, i1 false), !tbaa.struct !11
  %80 = load float, ptr %10, align 4, !tbaa !9
  %81 = fneg float %80
  %82 = load <2 x float>, ptr %26, align 4
  %83 = call <2 x float> @_Zml7QVectorf(<2 x float> %82, float noundef %81)
  store <2 x float> %83, ptr %25, align 4
  %84 = load float, ptr %20, align 4, !tbaa !9
  %85 = load <2 x float>, ptr %25, align 4
  %86 = call <2 x float> @_Zml7QVectorf(<2 x float> %85, float noundef %84)
  store <2 x float> %86, ptr %24, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %6, ptr align 4 %24, i64 8, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #6
  br label %87

87:                                               ; preds = %79, %75
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  %88 = load <2 x float>, ptr %6, align 4
  ret <2 x float> %88
}

; Function Attrs: mustprogress uwtable
declare dso_local <2 x float> @_Zmi7QVectorS_(<2 x float>, <2 x float>) #0

; Function Attrs: mustprogress uwtable
declare dso_local <2 x float> @_Zmlf7QVector(float noundef, <2 x float>) #0

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZNK7QVector3DotES_(ptr noundef nonnull align 4 dereferenceable(8), <2 x float>) #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local <2 x float> @_ZNK7QVector10NormalizedEv(ptr noundef nonnull align 4 dereferenceable(8)) #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local <2 x float> @_ZNK7QVectorngEv(ptr noundef nonnull align 4 dereferenceable(8)) #0 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZSt4sqrtf(float noundef) #5

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZSt3absf(float noundef) #5

; Function Attrs: mustprogress uwtable
declare dso_local <2 x float> @_Zml7QVectorf(<2 x float>, float noundef) #0

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="64" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="64" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { inlinehint mustprogress uwtable "min-legal-vector-width"="64" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #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 = !{!"float", !7, i64 0}
!11 = !{i64 0, i64 4, !9, i64 4, i64 4, !9}
!12 = !{!13, !10, i64 112}
!13 = !{!"_ZTS5QBody", !10, i64 8, !10, i64 12, !6, i64 16, !14, i64 24, !14, i64 32, !10, i64 40, !10, i64 44, !15, i64 48, !16, i64 76, !17, i64 80, !17, i64 81, !17, i64 82, !10, i64 84, !18, i64 88, !17, i64 92, !10, i64 96, !17, i64 100, !17, i64 101, !14, i64 104, !10, i64 112, !10, i64 116, !10, i64 120, !10, i64 124, !10, i64 128, !19, i64 132, !19, i64 136, !17, i64 140, !17, i64 141, !17, i64 142, !19, i64 144, !19, i64 148, !19, i64 152, !17, i64 156, !20, i64 160, !20, i64 192, !22, i64 224, !17, i64 256, !23, i64 264, !27, i64 288, !17, i64 292}
!14 = !{!"_ZTS7QVector", !10, i64 0, !10, i64 4}
!15 = !{!"_ZTS5QAABB", !14, i64 0, !14, i64 8, !14, i64 16, !10, i64 24}
!16 = !{!"_ZTSN5QBody5ModesE", !7, i64 0}
!17 = !{!"bool", !7, i64 0}
!18 = !{!"_ZTSN5QBody9BodyTypesE", !7, i64 0}
!19 = !{!"int", !7, i64 0}
!20 = !{!"_ZTSSt8functionIFvP5QBodyEE", !21, i64 0, !6, i64 24}
!21 = !{!"_ZTSSt14_Function_base", !7, i64 0, !6, i64 16}
!22 = !{!"_ZTSSt8functionIFbP5QBodyNS0_13CollisionInfoEEE", !21, i64 0, !6, i64 24}
!23 = !{!"_ZTSSt6vectorIP5QMeshSaIS1_EE", !24, i64 0}
!24 = !{!"_ZTSSt12_Vector_baseIP5QMeshSaIS1_EE", !25, i64 0}
!25 = !{!"_ZTSNSt12_Vector_baseIP5QMeshSaIS1_EE12_Vector_implE", !26, i64 0}
!26 = !{!"_ZTSNSt12_Vector_baseIP5QMeshSaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!27 = !{!"_ZTSN5QBody16SimulationModelsE", !7, i64 0}
!28 = !{!13, !10, i64 116}


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

%struct.QVector = type { float, float }

; Function Attrs: mustprogress uwtable
declare dso_local <2 x float> @_ZN7QVector4ZeroEv() local_unnamed_addr #0 align 2

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

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

; Function Attrs: mustprogress uwtable
define dso_local <2 x float> @_ZN5QBody15ComputeFrictionEPS_S0_R7QVectorfS2_(ptr nocapture noundef readonly %0, ptr nocapture noundef readonly %1, ptr nocapture noundef nonnull readonly align 4 dereferenceable(8) %2, float noundef %3, ptr noundef nonnull align 4 dereferenceable(8) %4) local_unnamed_addr #0 align 2 {
  %6 = alloca %struct.QVector, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #5
  %.sroa.013.0.copyload = load <2 x float>, ptr %4, align 4
  %.sroa.011.0.copyload = load <2 x float>, ptr %2, align 4
  %7 = tail call noundef float @_ZNK7QVector3DotES_(ptr noundef nonnull align 4 dereferenceable(8) %4, <2 x float> %.sroa.011.0.copyload)
  %.sroa.010.0.copyload = load <2 x float>, ptr %2, align 4
  %8 = tail call <2 x float> @_Zmlf7QVector(float noundef %7, <2 x float> %.sroa.010.0.copyload)
  %9 = tail call <2 x float> @_Zmi7QVectorS_(<2 x float> %.sroa.013.0.copyload, <2 x float> %8)
  store <2 x float> %9, ptr %6, align 8
  %10 = call <2 x float> @_ZNK7QVector10NormalizedEv(ptr noundef nonnull align 4 dereferenceable(8) %6)
  store <2 x float> %10, ptr %6, align 8
  %11 = call <2 x float> @_ZNK7QVectorngEv(ptr noundef nonnull align 4 dereferenceable(8) %6)
  %12 = call noundef float @_ZNK7QVector3DotES_(ptr noundef nonnull align 4 dereferenceable(8) %4, <2 x float> %11)
  %13 = getelementptr inbounds i8, ptr %0, i64 112
  %14 = load float, ptr %13, align 8, !tbaa !5
  %15 = getelementptr inbounds i8, ptr %1, i64 112
  %16 = load float, ptr %15, align 8, !tbaa !5
  %17 = getelementptr inbounds i8, ptr %0, i64 116
  %18 = load float, ptr %17, align 4, !tbaa !25
  %19 = getelementptr inbounds i8, ptr %1, i64 116
  %20 = load float, ptr %19, align 4, !tbaa !25
  %21 = fmul float %18, %20
  %22 = call noundef float @_ZSt4sqrtf(float noundef %21)
  %23 = call <2 x float> @_ZN7QVector4ZeroEv()
  %24 = call noundef float @_ZSt3absf(float noundef %12)
  %25 = fmul float %22, %3
  %26 = fcmp olt float %24, %25
  br i1 %26, label %27, label %29

27:                                               ; preds = %5
  %.sroa.03.0.copyload = load <2 x float>, ptr %6, align 8
  %28 = call <2 x float> @_Zml7QVectorf(<2 x float> %.sroa.03.0.copyload, float noundef %12)
  br label %34

29:                                               ; preds = %5
  %30 = fcmp olt float %14, %16
  %. = select i1 %30, float %14, float %16
  %.sroa.0.0.copyload = load <2 x float>, ptr %6, align 8
  %31 = fneg float %3
  %32 = call <2 x float> @_Zml7QVectorf(<2 x float> %.sroa.0.0.copyload, float noundef %31)
  %33 = call <2 x float> @_Zml7QVectorf(<2 x float> %32, float noundef %.)
  br label %34

34:                                               ; preds = %29, %27
  %.sroa.027.0 = phi <2 x float> [ %28, %27 ], [ %33, %29 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #5
  ret <2 x float> %.sroa.027.0
}

; Function Attrs: mustprogress uwtable
declare dso_local <2 x float> @_Zmi7QVectorS_(<2 x float>, <2 x float>) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
declare dso_local <2 x float> @_Zmlf7QVector(float noundef, <2 x float>) local_unnamed_addr #0

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local <2 x float> @_ZNK7QVector10NormalizedEv(ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local <2 x float> @_ZNK7QVectorngEv(ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #0 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZSt4sqrtf(float noundef) local_unnamed_addr #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZSt3absf(float noundef) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
declare dso_local <2 x float> @_Zml7QVectorf(<2 x float>, float noundef) local_unnamed_addr #0

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="64" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="64" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { inlinehint mustprogress uwtable "min-legal-vector-width"="64" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { 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 112}
!6 = !{!"_ZTS5QBody", !7, i64 8, !7, i64 12, !10, i64 16, !11, i64 24, !11, i64 32, !7, i64 40, !7, i64 44, !12, i64 48, !13, i64 76, !14, i64 80, !14, i64 81, !14, i64 82, !7, i64 84, !15, i64 88, !14, i64 92, !7, i64 96, !14, i64 100, !14, i64 101, !11, i64 104, !7, i64 112, !7, i64 116, !7, i64 120, !7, i64 124, !7, i64 128, !16, i64 132, !16, i64 136, !14, i64 140, !14, i64 141, !14, i64 142, !16, i64 144, !16, i64 148, !16, i64 152, !14, i64 156, !17, i64 160, !17, i64 192, !19, i64 224, !14, i64 256, !20, i64 264, !24, i64 288, !14, i64 292}
!7 = !{!"float", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!"_ZTS7QVector", !7, i64 0, !7, i64 4}
!12 = !{!"_ZTS5QAABB", !11, i64 0, !11, i64 8, !11, i64 16, !7, i64 24}
!13 = !{!"_ZTSN5QBody5ModesE", !8, i64 0}
!14 = !{!"bool", !8, i64 0}
!15 = !{!"_ZTSN5QBody9BodyTypesE", !8, i64 0}
!16 = !{!"int", !8, i64 0}
!17 = !{!"_ZTSSt8functionIFvP5QBodyEE", !18, i64 0, !10, i64 24}
!18 = !{!"_ZTSSt14_Function_base", !8, i64 0, !10, i64 16}
!19 = !{!"_ZTSSt8functionIFbP5QBodyNS0_13CollisionInfoEEE", !18, i64 0, !10, i64 24}
!20 = !{!"_ZTSSt6vectorIP5QMeshSaIS1_EE", !21, i64 0}
!21 = !{!"_ZTSSt12_Vector_baseIP5QMeshSaIS1_EE", !22, i64 0}
!22 = !{!"_ZTSNSt12_Vector_baseIP5QMeshSaIS1_EE12_Vector_implE", !23, i64 0}
!23 = !{!"_ZTSNSt12_Vector_baseIP5QMeshSaIS1_EE17_Vector_impl_dataE", !10, i64 0, !10, i64 8, !10, i64 16}
!24 = !{!"_ZTSN5QBody16SimulationModelsE", !8, i64 0}
!25 = !{!6, !7, i64 116}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass