; LLVM IR from jrouwe/JoltPhysics :: Jolt/Physics/Collision/Shape/PlaneShape.ll (ZN3JPH10PlaneShape20CalculateLocalBoundsEv)

; 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.JPH::Vec3" = type { %union.anon.5 }
%union.anon.5 = type { <4 x float> }
%"class.JPH::AABox" = type { %"class.JPH::Vec3", %"class.JPH::Vec3" }
%"class.JPH::PlaneShape" = type { %"class.JPH::Shape.base", %"class.JPH::Plane", %"class.JPH::RefConst", float, %"class.JPH::AABox" }
%"class.JPH::Shape.base" = type <{ ptr, %"class.JPH::RefTarget.4", [4 x i8], i64, i8, i8 }>
%"class.JPH::RefTarget.4" = type { %"struct.std::atomic" }
%"struct.std::atomic" = type { %"struct.std::__atomic_base" }
%"struct.std::__atomic_base" = type { i32 }
%"class.JPH::Plane" = type { %"class.JPH::Vec4" }
%"class.JPH::Vec4" = type { %union.anon.3 }
%union.anon.3 = type { <4 x float> }
%"class.JPH::RefConst" = type { ptr }

; 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 uwtable
declare dso_local void @_ZNK3JPH10PlaneShape11GetVerticesEPNS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(96), ptr noundef) #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local { double, double } @_ZNK3JPH5Plane9GetNormalEv(ptr noundef nonnull align 16 dereferenceable(16)) #1 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) #2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16), double, double) #3 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3JPH10PlaneShape20CalculateLocalBoundsEv(ptr noundef nonnull align 16 dereferenceable(96) %0) #1 align 2 {
  %2 = alloca ptr, align 8
  %3 = alloca [4 x %"class.JPH::Vec3"], align 16
  %4 = alloca %"class.JPH::AABox", align 16
  %5 = alloca %"class.JPH::Vec3", align 16
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca %"class.JPH::Vec3", align 16
  %11 = alloca %"class.JPH::Vec3", align 16
  %12 = alloca %"class.JPH::Vec3", align 16
  %13 = alloca %"class.JPH::Vec3", align 16
  store ptr %0, ptr %2, align 8, !tbaa !5
  %14 = load ptr, ptr %2, align 8
  call void @llvm.lifetime.start.p0(i64 64, ptr %3) #4
  %15 = getelementptr inbounds [4 x %"class.JPH::Vec3"], ptr %3, i64 0, i64 0
  call void @_ZNK3JPH10PlaneShape11GetVerticesEPNS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(96) %14, ptr noundef %15)
  call void @llvm.lifetime.start.p0(i64 32, ptr %4) #4
  call void @_ZN3JPH5AABoxC2Ev(ptr noundef nonnull align 16 dereferenceable(32) %4)
  %16 = getelementptr inbounds %"class.JPH::PlaneShape", ptr %14, i32 0, i32 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %16, ptr align 16 %4, i64 32, i1 false), !tbaa.struct !9
  call void @llvm.lifetime.end.p0(i64 32, ptr %4) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr %5) #4
  %17 = getelementptr inbounds %"class.JPH::PlaneShape", ptr %14, i32 0, i32 1
  %18 = call { double, double } @_ZNK3JPH5Plane9GetNormalEv(ptr noundef nonnull align 16 dereferenceable(16) %17)
  %19 = getelementptr inbounds %"class.JPH::Vec3", ptr %5, i32 0, i32 0
  %20 = getelementptr inbounds %union.anon.5, ptr %19, i32 0, i32 0
  %21 = getelementptr inbounds { double, double }, ptr %20, i32 0, i32 0
  %22 = extractvalue { double, double } %18, 0
  store double %22, ptr %21, align 16
  %23 = getelementptr inbounds { double, double }, ptr %20, i32 0, i32 1
  %24 = extractvalue { double, double } %18, 1
  store double %24, ptr %23, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #4
  store ptr %3, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #4
  %25 = load ptr, ptr %6, align 8, !tbaa !5
  %26 = getelementptr inbounds [4 x %"class.JPH::Vec3"], ptr %25, i64 0, i64 0
  store ptr %26, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #4
  %27 = load ptr, ptr %6, align 8, !tbaa !5
  %28 = getelementptr inbounds [4 x %"class.JPH::Vec3"], ptr %27, i64 0, i64 0
  %29 = getelementptr inbounds %"class.JPH::Vec3", ptr %28, i64 4
  store ptr %29, ptr %8, align 8, !tbaa !5
  br label %30

30:                                               ; preds = %73, %1
  %31 = load ptr, ptr %7, align 8, !tbaa !5
  %32 = load ptr, ptr %8, align 8, !tbaa !5
  %33 = icmp ne ptr %31, %32
  br i1 %33, label %35, label %34

34:                                               ; preds = %30
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #4
  br label %76

35:                                               ; preds = %30
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #4
  %36 = load ptr, ptr %7, align 8, !tbaa !5
  store ptr %36, ptr %9, align 8, !tbaa !5
  %37 = getelementptr inbounds %"class.JPH::PlaneShape", ptr %14, i32 0, i32 4
  %38 = load ptr, ptr %9, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %10, ptr align 16 %38, i64 16, i1 false), !tbaa.struct !11
  %39 = getelementptr inbounds { double, double }, ptr %10, i32 0, i32 0
  %40 = load double, ptr %39, align 16
  %41 = getelementptr inbounds { double, double }, ptr %10, i32 0, i32 1
  %42 = load double, ptr %41, align 8
  call void @_ZN3JPH5AABox11EncapsulateENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(32) %37, double %40, double %42)
  %43 = getelementptr inbounds %"class.JPH::PlaneShape", ptr %14, i32 0, i32 4
  %44 = load ptr, ptr %9, align 8, !tbaa !5
  %45 = getelementptr inbounds %"class.JPH::PlaneShape", ptr %14, i32 0, i32 3
  %46 = load float, ptr %45, align 8, !tbaa !12
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %13, ptr align 16 %5, i64 16, i1 false), !tbaa.struct !11
  %47 = getelementptr inbounds { double, double }, ptr %13, i32 0, i32 0
  %48 = load double, ptr %47, align 16
  %49 = getelementptr inbounds { double, double }, ptr %13, i32 0, i32 1
  %50 = load double, ptr %49, align 8
  %51 = call { double, double } @_ZN3JPHmlEfNS_4Vec3E(float noundef %46, double %48, double %50)
  %52 = getelementptr inbounds %"class.JPH::Vec3", ptr %12, i32 0, i32 0
  %53 = getelementptr inbounds %union.anon.5, ptr %52, i32 0, i32 0
  %54 = getelementptr inbounds { double, double }, ptr %53, i32 0, i32 0
  %55 = extractvalue { double, double } %51, 0
  store double %55, ptr %54, align 16
  %56 = getelementptr inbounds { double, double }, ptr %53, i32 0, i32 1
  %57 = extractvalue { double, double } %51, 1
  store double %57, ptr %56, align 8
  %58 = getelementptr inbounds { double, double }, ptr %12, i32 0, i32 0
  %59 = load double, ptr %58, align 16
  %60 = getelementptr inbounds { double, double }, ptr %12, i32 0, i32 1
  %61 = load double, ptr %60, align 8
  %62 = call { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %44, double %59, double %61)
  %63 = getelementptr inbounds %"class.JPH::Vec3", ptr %11, i32 0, i32 0
  %64 = getelementptr inbounds %union.anon.5, ptr %63, i32 0, i32 0
  %65 = getelementptr inbounds { double, double }, ptr %64, i32 0, i32 0
  %66 = extractvalue { double, double } %62, 0
  store double %66, ptr %65, align 16
  %67 = getelementptr inbounds { double, double }, ptr %64, i32 0, i32 1
  %68 = extractvalue { double, double } %62, 1
  store double %68, ptr %67, align 8
  %69 = getelementptr inbounds { double, double }, ptr %11, i32 0, i32 0
  %70 = load double, ptr %69, align 16
  %71 = getelementptr inbounds { double, double }, ptr %11, i32 0, i32 1
  %72 = load double, ptr %71, align 8
  call void @_ZN3JPH5AABox11EncapsulateENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(32) %43, double %70, double %72)
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  br label %73

73:                                               ; preds = %35
  %74 = load ptr, ptr %7, align 8, !tbaa !5
  %75 = getelementptr inbounds %"class.JPH::Vec3", ptr %74, i32 1
  store ptr %75, ptr %7, align 8, !tbaa !5
  br label %30

76:                                               ; preds = %34
  call void @llvm.lifetime.end.p0(i64 16, ptr %5) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr %3) #4
  ret void
}

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3JPH5AABox11EncapsulateENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(32), double, double) #1 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local { double, double } @_ZN3JPHmlEfNS_4Vec3E(float noundef, double, double) #3

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { alwaysinline mustprogress uwtable "min-legal-vector-width"="128" "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 = { 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 = !{i64 0, i64 16, !10, i64 16, i64 16, !10}
!10 = !{!7, !7, i64 0}
!11 = !{i64 0, i64 16, !10}
!12 = !{!13, !25, i64 56}
!13 = !{!"_ZTSN3JPH10PlaneShapeE", !14, i64 0, !22, i64 32, !24, i64 48, !25, i64 56, !26, i64 64}
!14 = !{!"_ZTSN3JPH5ShapeE", !15, i64 8, !19, i64 16, !20, i64 24, !21, i64 25}
!15 = !{!"_ZTSN3JPH9RefTargetINS_5ShapeEEE", !16, i64 0}
!16 = !{!"_ZTSSt6atomicIjE", !17, i64 0}
!17 = !{!"_ZTSSt13__atomic_baseIjE", !18, i64 0}
!18 = !{!"int", !7, i64 0}
!19 = !{!"long", !7, i64 0}
!20 = !{!"_ZTSN3JPH10EShapeTypeE", !7, i64 0}
!21 = !{!"_ZTSN3JPH13EShapeSubTypeE", !7, i64 0}
!22 = !{!"_ZTSN3JPH5PlaneE", !23, i64 0}
!23 = !{!"_ZTSN3JPH4Vec4E", !7, i64 0}
!24 = !{!"_ZTSN3JPH8RefConstINS_15PhysicsMaterialEEE", !6, i64 0}
!25 = !{!"float", !7, i64 0}
!26 = !{!"_ZTSN3JPH5AABoxE", !27, i64 0, !27, i64 16}
!27 = !{!"_ZTSN3JPH4Vec3E", !7, i64 0}


; 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.JPH::Vec3" = type { %union.anon.5 }
%union.anon.5 = type { <4 x float> }
%"class.JPH::AABox" = type { %"class.JPH::Vec3", %"class.JPH::Vec3" }

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK3JPH10PlaneShape11GetVerticesEPNS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(96), ptr noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local { double, double } @_ZNK3JPH5Plane9GetNormalEv(ptr noundef nonnull align 16 dereferenceable(16)) local_unnamed_addr #1 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) #2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16), double, double) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3JPH10PlaneShape20CalculateLocalBoundsEv(ptr noundef nonnull align 16 dereferenceable(96) %0) local_unnamed_addr #1 align 2 {
  %2 = alloca [4 x %"class.JPH::Vec3"], align 16
  %3 = alloca %"class.JPH::AABox", align 16
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %2) #4
  call void @_ZNK3JPH10PlaneShape11GetVerticesEPNS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(96) %0, ptr noundef nonnull %2)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %3) #4
  call void @_ZN3JPH5AABoxC2Ev(ptr noundef nonnull align 16 dereferenceable(32) %3)
  %4 = getelementptr inbounds i8, ptr %0, i64 64
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(32) %4, ptr noundef nonnull align 16 dereferenceable(32) %3, i64 32, i1 false), !tbaa.struct !5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #4
  %5 = getelementptr inbounds i8, ptr %0, i64 32
  %6 = call { double, double } @_ZNK3JPH5Plane9GetNormalEv(ptr noundef nonnull align 16 dereferenceable(16) %5)
  %7 = extractvalue { double, double } %6, 0
  %8 = extractvalue { double, double } %6, 1
  %9 = getelementptr inbounds i8, ptr %0, i64 56
  %.sroa.05.0.copyload = load double, ptr %2, align 16
  %.sroa.26.0..sroa_idx = getelementptr inbounds i8, ptr %2, i64 8
  %.sroa.26.0.copyload = load double, ptr %.sroa.26.0..sroa_idx, align 8, !tbaa !6
  call void @_ZN3JPH5AABox11EncapsulateENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(32) %4, double %.sroa.05.0.copyload, double %.sroa.26.0.copyload)
  %10 = load float, ptr %9, align 8, !tbaa !9
  %11 = call { double, double } @_ZN3JPHmlEfNS_4Vec3E(float noundef %10, double %7, double %8)
  %12 = extractvalue { double, double } %11, 0
  %13 = extractvalue { double, double } %11, 1
  %14 = call { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %2, double %12, double %13)
  %15 = extractvalue { double, double } %14, 0
  %16 = extractvalue { double, double } %14, 1
  call void @_ZN3JPH5AABox11EncapsulateENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(32) %4, double %15, double %16)
  %.0.ptr.1 = getelementptr inbounds i8, ptr %2, i64 16
  %.sroa.05.0.copyload.1 = load double, ptr %.0.ptr.1, align 16
  %.sroa.26.0..sroa_idx.1 = getelementptr inbounds i8, ptr %2, i64 24
  %.sroa.26.0.copyload.1 = load double, ptr %.sroa.26.0..sroa_idx.1, align 8, !tbaa !6
  call void @_ZN3JPH5AABox11EncapsulateENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(32) %4, double %.sroa.05.0.copyload.1, double %.sroa.26.0.copyload.1)
  %17 = load float, ptr %9, align 8, !tbaa !9
  %18 = call { double, double } @_ZN3JPHmlEfNS_4Vec3E(float noundef %17, double %7, double %8)
  %19 = extractvalue { double, double } %18, 0
  %20 = extractvalue { double, double } %18, 1
  %21 = call { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %.0.ptr.1, double %19, double %20)
  %22 = extractvalue { double, double } %21, 0
  %23 = extractvalue { double, double } %21, 1
  call void @_ZN3JPH5AABox11EncapsulateENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(32) %4, double %22, double %23)
  %.0.ptr.2 = getelementptr inbounds i8, ptr %2, i64 32
  %.sroa.05.0.copyload.2 = load double, ptr %.0.ptr.2, align 16
  %.sroa.26.0..sroa_idx.2 = getelementptr inbounds i8, ptr %2, i64 40
  %.sroa.26.0.copyload.2 = load double, ptr %.sroa.26.0..sroa_idx.2, align 8, !tbaa !6
  call void @_ZN3JPH5AABox11EncapsulateENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(32) %4, double %.sroa.05.0.copyload.2, double %.sroa.26.0.copyload.2)
  %24 = load float, ptr %9, align 8, !tbaa !9
  %25 = call { double, double } @_ZN3JPHmlEfNS_4Vec3E(float noundef %24, double %7, double %8)
  %26 = extractvalue { double, double } %25, 0
  %27 = extractvalue { double, double } %25, 1
  %28 = call { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %.0.ptr.2, double %26, double %27)
  %29 = extractvalue { double, double } %28, 0
  %30 = extractvalue { double, double } %28, 1
  call void @_ZN3JPH5AABox11EncapsulateENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(32) %4, double %29, double %30)
  %.0.ptr.3 = getelementptr inbounds i8, ptr %2, i64 48
  %.sroa.05.0.copyload.3 = load double, ptr %.0.ptr.3, align 16
  %.sroa.26.0..sroa_idx.3 = getelementptr inbounds i8, ptr %2, i64 56
  %.sroa.26.0.copyload.3 = load double, ptr %.sroa.26.0..sroa_idx.3, align 8, !tbaa !6
  call void @_ZN3JPH5AABox11EncapsulateENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(32) %4, double %.sroa.05.0.copyload.3, double %.sroa.26.0.copyload.3)
  %31 = load float, ptr %9, align 8, !tbaa !9
  %32 = call { double, double } @_ZN3JPHmlEfNS_4Vec3E(float noundef %31, double %7, double %8)
  %33 = extractvalue { double, double } %32, 0
  %34 = extractvalue { double, double } %32, 1
  %35 = call { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %.0.ptr.3, double %33, double %34)
  %36 = extractvalue { double, double } %35, 0
  %37 = extractvalue { double, double } %35, 1
  call void @_ZN3JPH5AABox11EncapsulateENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(32) %4, double %36, double %37)
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %2) #4
  ret void
}

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3JPH5AABox11EncapsulateENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(32), double, double) local_unnamed_addr #1 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local { double, double } @_ZN3JPHmlEfNS_4Vec3E(float noundef, double, double) local_unnamed_addr #3

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { alwaysinline mustprogress uwtable "min-legal-vector-width"="128" "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 = { 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 16, !6, i64 16, i64 16, !6}
!6 = !{!7, !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !23, i64 56}
!10 = !{!"_ZTSN3JPH10PlaneShapeE", !11, i64 0, !19, i64 32, !21, i64 48, !23, i64 56, !24, i64 64}
!11 = !{!"_ZTSN3JPH5ShapeE", !12, i64 8, !16, i64 16, !17, i64 24, !18, i64 25}
!12 = !{!"_ZTSN3JPH9RefTargetINS_5ShapeEEE", !13, i64 0}
!13 = !{!"_ZTSSt6atomicIjE", !14, i64 0}
!14 = !{!"_ZTSSt13__atomic_baseIjE", !15, i64 0}
!15 = !{!"int", !7, i64 0}
!16 = !{!"long", !7, i64 0}
!17 = !{!"_ZTSN3JPH10EShapeTypeE", !7, i64 0}
!18 = !{!"_ZTSN3JPH13EShapeSubTypeE", !7, i64 0}
!19 = !{!"_ZTSN3JPH5PlaneE", !20, i64 0}
!20 = !{!"_ZTSN3JPH4Vec4E", !7, i64 0}
!21 = !{!"_ZTSN3JPH8RefConstINS_15PhysicsMaterialEEE", !22, i64 0}
!22 = !{!"any pointer", !7, i64 0}
!23 = !{!"float", !7, i64 0}
!24 = !{!"_ZTSN3JPH5AABoxE", !25, i64 0, !25, i64 16}
!25 = !{!"_ZTSN3JPH4Vec3E", !7, i64 0}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,LICMPass,LoopRotatePass,SROAPass,SimplifyCFGPass