; LLVM IR from Slingshot-Physics/slingshot-community :: common/geometry/src (support_functions)

; 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.geometry::types::labeledVertex_t" = type { i32, %class.Vector3 }
%class.Vector3 = type { [3 x float] }
%"struct.geometry::types::shapeCube_t" = type { float, float, float }

; 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: inlinehint mustprogress uwtable
declare dso_local void @_ZN8geometry5types15labeledVertex_tC2Ev(ptr noundef nonnull align 4 dereferenceable(16)) unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNK7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12), i32 noundef) #2 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZN7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12), i32 noundef) #2 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN8geometry14supportMappingERK7Vector3RKNS_5types11shapeCube_tE(ptr dead_on_unwind noalias writable sret(%"struct.geometry::types::labeledVertex_t") align 4 %0, ptr noundef nonnull align 4 dereferenceable(12) %1, ptr noundef nonnull align 4 dereferenceable(12) %2) #4 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca float, align 4
  %8 = alloca float, align 4
  %9 = alloca i32, align 4
  %10 = alloca [3 x float], align 4
  %11 = alloca float, align 4
  store ptr %0, ptr %4, align 8
  store ptr %1, ptr %5, align 8, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !5
  call void @_ZN8geometry5types15labeledVertex_tC2Ev(ptr noundef nonnull align 4 dereferenceable(16) %0)
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  store float 2.000000e+00, ptr %7, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  store float 0xC7EFFFFFE0000000, ptr %8, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  store i32 0, ptr %9, align 4, !tbaa !11
  br label %12

12:                                               ; preds = %87, %3
  %13 = load i32, ptr %9, align 4, !tbaa !11
  %14 = icmp ult i32 %13, 8
  br i1 %14, label %16, label %15

15:                                               ; preds = %12
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  br label %90

16:                                               ; preds = %12
  call void @llvm.lifetime.start.p0(i64 12, ptr %10) #5
  %17 = load i32, ptr %9, align 4, !tbaa !11
  %18 = and i32 %17, 1
  %19 = icmp eq i32 %18, 0
  %20 = zext i1 %19 to i64
  %21 = select i1 %19, float 1.000000e+00, float -1.000000e+00
  %22 = load ptr, ptr %6, align 8, !tbaa !5
  %23 = getelementptr inbounds %"struct.geometry::types::shapeCube_t", ptr %22, i32 0, i32 0
  %24 = load float, ptr %23, align 4, !tbaa !13
  %25 = fmul float %21, %24
  store float %25, ptr %10, align 4, !tbaa !9
  %26 = getelementptr inbounds float, ptr %10, i64 1
  %27 = load i32, ptr %9, align 4, !tbaa !11
  %28 = and i32 %27, 2
  %29 = icmp eq i32 %28, 0
  %30 = zext i1 %29 to i64
  %31 = select i1 %29, float 1.000000e+00, float -1.000000e+00
  %32 = load ptr, ptr %6, align 8, !tbaa !5
  %33 = getelementptr inbounds %"struct.geometry::types::shapeCube_t", ptr %32, i32 0, i32 1
  %34 = load float, ptr %33, align 4, !tbaa !15
  %35 = fmul float %31, %34
  store float %35, ptr %26, align 4, !tbaa !9
  %36 = getelementptr inbounds float, ptr %10, i64 2
  %37 = load i32, ptr %9, align 4, !tbaa !11
  %38 = and i32 %37, 4
  %39 = icmp eq i32 %38, 0
  %40 = zext i1 %39 to i64
  %41 = select i1 %39, float 1.000000e+00, float -1.000000e+00
  %42 = load ptr, ptr %6, align 8, !tbaa !5
  %43 = getelementptr inbounds %"struct.geometry::types::shapeCube_t", ptr %42, i32 0, i32 2
  %44 = load float, ptr %43, align 4, !tbaa !16
  %45 = fmul float %41, %44
  store float %45, ptr %36, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  %46 = getelementptr inbounds [3 x float], ptr %10, i64 0, i64 0
  %47 = load float, ptr %46, align 4, !tbaa !9
  %48 = load ptr, ptr %5, align 8, !tbaa !5
  %49 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %48, i32 noundef 0)
  %50 = load float, ptr %49, align 4, !tbaa !9
  %51 = getelementptr inbounds [3 x float], ptr %10, i64 0, i64 1
  %52 = load float, ptr %51, align 4, !tbaa !9
  %53 = load ptr, ptr %5, align 8, !tbaa !5
  %54 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %53, i32 noundef 1)
  %55 = load float, ptr %54, align 4, !tbaa !9
  %56 = fmul float %52, %55
  %57 = call float @llvm.fmuladd.f32(float %47, float %50, float %56)
  %58 = getelementptr inbounds [3 x float], ptr %10, i64 0, i64 2
  %59 = load float, ptr %58, align 4, !tbaa !9
  %60 = load ptr, ptr %5, align 8, !tbaa !5
  %61 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %60, i32 noundef 2)
  %62 = load float, ptr %61, align 4, !tbaa !9
  %63 = call float @llvm.fmuladd.f32(float %59, float %62, float %57)
  store float %63, ptr %11, align 4, !tbaa !9
  %64 = load float, ptr %11, align 4, !tbaa !9
  %65 = load float, ptr %8, align 4, !tbaa !9
  %66 = fcmp ogt float %64, %65
  br i1 %66, label %67, label %86

67:                                               ; preds = %16
  %68 = load float, ptr %11, align 4, !tbaa !9
  store float %68, ptr %8, align 4, !tbaa !9
  %69 = load i32, ptr %9, align 4, !tbaa !11
  %70 = getelementptr inbounds %"struct.geometry::types::labeledVertex_t", ptr %0, i32 0, i32 0
  store i32 %69, ptr %70, align 4, !tbaa !17
  %71 = getelementptr inbounds [3 x float], ptr %10, i64 0, i64 0
  %72 = load float, ptr %71, align 4, !tbaa !9
  %73 = fdiv float %72, 2.000000e+00
  %74 = getelementptr inbounds %"struct.geometry::types::labeledVertex_t", ptr %0, i32 0, i32 1
  %75 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %74, i32 noundef 0)
  store float %73, ptr %75, align 4, !tbaa !9
  %76 = getelementptr inbounds [3 x float], ptr %10, i64 0, i64 1
  %77 = load float, ptr %76, align 4, !tbaa !9
  %78 = fdiv float %77, 2.000000e+00
  %79 = getelementptr inbounds %"struct.geometry::types::labeledVertex_t", ptr %0, i32 0, i32 1
  %80 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %79, i32 noundef 1)
  store float %78, ptr %80, align 4, !tbaa !9
  %81 = getelementptr inbounds [3 x float], ptr %10, i64 0, i64 2
  %82 = load float, ptr %81, align 4, !tbaa !9
  %83 = fdiv float %82, 2.000000e+00
  %84 = getelementptr inbounds %"struct.geometry::types::labeledVertex_t", ptr %0, i32 0, i32 1
  %85 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %84, i32 noundef 2)
  store float %83, ptr %85, align 4, !tbaa !9
  br label %86

86:                                               ; preds = %67, %16
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr %10) #5
  br label %87

87:                                               ; preds = %86
  %88 = load i32, ptr %9, align 4, !tbaa !11
  %89 = add i32 %88, 1
  store i32 %89, ptr %9, align 4, !tbaa !11
  br label %12, !llvm.loop !20

90:                                               ; preds = %15
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  ret void
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = { 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 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !10, i64 0}
!14 = !{!"_ZTSN8geometry5types11shapeCube_tE", !10, i64 0, !10, i64 4, !10, i64 8}
!15 = !{!14, !10, i64 4}
!16 = !{!14, !10, i64 8}
!17 = !{!18, !12, i64 0}
!18 = !{!"_ZTSN8geometry5types15labeledVertex_tE", !12, i64 0, !19, i64 4}
!19 = !{!"_ZTS7Vector3", !7, i64 0}
!20 = distinct !{!20, !21}
!21 = !{!"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"

%"struct.geometry::types::labeledVertex_t" = type { i32, %class.Vector3 }
%class.Vector3 = type { [3 x float] }

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN8geometry5types15labeledVertex_tC2Ev(ptr noundef nonnull align 4 dereferenceable(16)) unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNK7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12), i32 noundef) local_unnamed_addr #1 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZN7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12), i32 noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN8geometry14supportMappingERK7Vector3RKNS_5types11shapeCube_tE(ptr dead_on_unwind noalias nonnull writable sret(%"struct.geometry::types::labeledVertex_t") align 4 %0, ptr noundef nonnull align 4 dereferenceable(12) %1, ptr nocapture noundef nonnull readonly align 4 dereferenceable(12) %2) local_unnamed_addr #3 {
.peel.begin:
  tail call void @_ZN8geometry5types15labeledVertex_tC2Ev(ptr noundef nonnull align 4 dereferenceable(16) %0)
  %3 = getelementptr inbounds i8, ptr %2, i64 4
  %4 = getelementptr inbounds i8, ptr %2, i64 8
  %5 = getelementptr inbounds i8, ptr %0, i64 4
  %6 = load float, ptr %2, align 4, !tbaa !5
  %7 = load float, ptr %3, align 4, !tbaa !10
  %8 = load float, ptr %4, align 4, !tbaa !11
  %9 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %1, i32 noundef 0)
  %10 = load float, ptr %9, align 4, !tbaa !12
  %11 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %1, i32 noundef 1)
  %12 = load float, ptr %11, align 4, !tbaa !12
  %13 = fmul float %7, %12
  %14 = tail call float @llvm.fmuladd.f32(float %6, float %10, float %13)
  %15 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %1, i32 noundef 2)
  %16 = load float, ptr %15, align 4, !tbaa !12
  %17 = tail call float @llvm.fmuladd.f32(float %8, float %16, float %14)
  %18 = fcmp ogt float %17, 0xC7EFFFFFE0000000
  br i1 %18, label %19, label %.peel.next

19:                                               ; preds = %.peel.begin
  store i32 0, ptr %0, align 4, !tbaa !13
  %20 = fmul float %6, 5.000000e-01
  %21 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZN7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %5, i32 noundef 0)
  store float %20, ptr %21, align 4, !tbaa !12
  %22 = fmul float %7, 5.000000e-01
  %23 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZN7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %5, i32 noundef 1)
  store float %22, ptr %23, align 4, !tbaa !12
  %24 = fmul float %8, 5.000000e-01
  %25 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZN7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %5, i32 noundef 2)
  store float %24, ptr %25, align 4, !tbaa !12
  br label %.peel.next

.peel.next:                                       ; preds = %.peel.begin, %19
  %.1.peel = phi float [ %17, %19 ], [ 0xC7EFFFFFE0000000, %.peel.begin ]
  %26 = load float, ptr %2, align 4, !tbaa !5
  %27 = fneg float %26
  %28 = load float, ptr %3, align 4, !tbaa !10
  %29 = load float, ptr %4, align 4, !tbaa !11
  %30 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %1, i32 noundef 0)
  %31 = load float, ptr %30, align 4, !tbaa !12
  %32 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %1, i32 noundef 1)
  %33 = load float, ptr %32, align 4, !tbaa !12
  %34 = fmul float %28, %33
  %35 = tail call float @llvm.fmuladd.f32(float %27, float %31, float %34)
  %36 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %1, i32 noundef 2)
  %37 = load float, ptr %36, align 4, !tbaa !12
  %38 = tail call float @llvm.fmuladd.f32(float %29, float %37, float %35)
  %39 = fcmp ogt float %38, %.1.peel
  br i1 %39, label %40, label %.peel.next21

40:                                               ; preds = %.peel.next
  store i32 1, ptr %0, align 4, !tbaa !13
  %41 = fmul float %26, -5.000000e-01
  %42 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZN7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %5, i32 noundef 0)
  store float %41, ptr %42, align 4, !tbaa !12
  %43 = fmul float %28, 5.000000e-01
  %44 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZN7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %5, i32 noundef 1)
  store float %43, ptr %44, align 4, !tbaa !12
  %45 = fmul float %29, 5.000000e-01
  %46 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZN7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %5, i32 noundef 2)
  store float %45, ptr %46, align 4, !tbaa !12
  br label %.peel.next21

.peel.next21:                                     ; preds = %.peel.next, %40
  %.1.peel22 = phi float [ %38, %40 ], [ %.1.peel, %.peel.next ]
  %47 = load float, ptr %2, align 4, !tbaa !5
  %48 = load float, ptr %3, align 4, !tbaa !10
  %49 = fneg float %48
  %50 = load float, ptr %4, align 4, !tbaa !11
  %51 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %1, i32 noundef 0)
  %52 = load float, ptr %51, align 4, !tbaa !12
  %53 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %1, i32 noundef 1)
  %54 = load float, ptr %53, align 4, !tbaa !12
  %55 = fmul float %54, %49
  %56 = tail call float @llvm.fmuladd.f32(float %47, float %52, float %55)
  %57 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %1, i32 noundef 2)
  %58 = load float, ptr %57, align 4, !tbaa !12
  %59 = tail call float @llvm.fmuladd.f32(float %50, float %58, float %56)
  %60 = fcmp ogt float %59, %.1.peel22
  br i1 %60, label %61, label %.peel.next24

61:                                               ; preds = %.peel.next21
  store i32 2, ptr %0, align 4, !tbaa !13
  %62 = fmul float %47, 5.000000e-01
  %63 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZN7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %5, i32 noundef 0)
  store float %62, ptr %63, align 4, !tbaa !12
  %64 = fmul float %48, -5.000000e-01
  %65 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZN7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %5, i32 noundef 1)
  store float %64, ptr %65, align 4, !tbaa !12
  %66 = fmul float %50, 5.000000e-01
  %67 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZN7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %5, i32 noundef 2)
  store float %66, ptr %67, align 4, !tbaa !12
  br label %.peel.next24

.peel.next24:                                     ; preds = %.peel.next21, %61
  %.1.peel25 = phi float [ %59, %61 ], [ %.1.peel22, %.peel.next21 ]
  %68 = load float, ptr %2, align 4, !tbaa !5
  %69 = fneg float %68
  %70 = load float, ptr %3, align 4, !tbaa !10
  %71 = fneg float %70
  %72 = load float, ptr %4, align 4, !tbaa !11
  %73 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %1, i32 noundef 0)
  %74 = load float, ptr %73, align 4, !tbaa !12
  %75 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %1, i32 noundef 1)
  %76 = load float, ptr %75, align 4, !tbaa !12
  %77 = fmul float %76, %71
  %78 = tail call float @llvm.fmuladd.f32(float %69, float %74, float %77)
  %79 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %1, i32 noundef 2)
  %80 = load float, ptr %79, align 4, !tbaa !12
  %81 = tail call float @llvm.fmuladd.f32(float %72, float %80, float %78)
  %82 = fcmp ogt float %81, %.1.peel25
  br i1 %82, label %83, label %.peel.next27

83:                                               ; preds = %.peel.next24
  store i32 3, ptr %0, align 4, !tbaa !13
  %84 = fmul float %68, -5.000000e-01
  %85 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZN7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %5, i32 noundef 0)
  store float %84, ptr %85, align 4, !tbaa !12
  %86 = fmul float %70, -5.000000e-01
  %87 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZN7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %5, i32 noundef 1)
  store float %86, ptr %87, align 4, !tbaa !12
  %88 = fmul float %72, 5.000000e-01
  %89 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZN7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %5, i32 noundef 2)
  store float %88, ptr %89, align 4, !tbaa !12
  br label %.peel.next27

.peel.next27:                                     ; preds = %83, %.peel.next24
  %.020.ph = phi float [ %.1.peel25, %.peel.next24 ], [ %81, %83 ]
  %90 = load float, ptr %2, align 4, !tbaa !5
  %91 = load float, ptr %3, align 4, !tbaa !10
  %92 = load float, ptr %4, align 4, !tbaa !11
  %93 = fneg float %92
  %94 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %1, i32 noundef 0)
  %95 = load float, ptr %94, align 4, !tbaa !12
  %96 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %1, i32 noundef 1)
  %97 = load float, ptr %96, align 4, !tbaa !12
  %98 = fmul float %91, %97
  %99 = tail call float @llvm.fmuladd.f32(float %90, float %95, float %98)
  %100 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %1, i32 noundef 2)
  %101 = load float, ptr %100, align 4, !tbaa !12
  %102 = tail call float @llvm.fmuladd.f32(float %93, float %101, float %99)
  %103 = fcmp ogt float %102, %.020.ph
  br i1 %103, label %104, label %.peel.next27.1

104:                                              ; preds = %.peel.next27
  store i32 4, ptr %0, align 4, !tbaa !13
  %105 = fmul float %90, 5.000000e-01
  %106 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZN7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %5, i32 noundef 0)
  store float %105, ptr %106, align 4, !tbaa !12
  %107 = fmul float %91, 5.000000e-01
  %108 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZN7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %5, i32 noundef 1)
  store float %107, ptr %108, align 4, !tbaa !12
  %109 = fmul float %92, -5.000000e-01
  %110 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZN7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %5, i32 noundef 2)
  store float %109, ptr %110, align 4, !tbaa !12
  br label %.peel.next27.1

.peel.next27.1:                                   ; preds = %104, %.peel.next27
  %.1 = phi float [ %102, %104 ], [ %.020.ph, %.peel.next27 ]
  %111 = load float, ptr %2, align 4, !tbaa !5
  %112 = fneg float %111
  %113 = load float, ptr %3, align 4, !tbaa !10
  %114 = load float, ptr %4, align 4, !tbaa !11
  %115 = fneg float %114
  %116 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %1, i32 noundef 0)
  %117 = load float, ptr %116, align 4, !tbaa !12
  %118 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %1, i32 noundef 1)
  %119 = load float, ptr %118, align 4, !tbaa !12
  %120 = fmul float %113, %119
  %121 = tail call float @llvm.fmuladd.f32(float %112, float %117, float %120)
  %122 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %1, i32 noundef 2)
  %123 = load float, ptr %122, align 4, !tbaa !12
  %124 = tail call float @llvm.fmuladd.f32(float %115, float %123, float %121)
  %125 = fcmp ogt float %124, %.1
  br i1 %125, label %126, label %.peel.next27.2

126:                                              ; preds = %.peel.next27.1
  store i32 5, ptr %0, align 4, !tbaa !13
  %127 = fmul float %111, -5.000000e-01
  %128 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZN7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %5, i32 noundef 0)
  store float %127, ptr %128, align 4, !tbaa !12
  %129 = fmul float %113, 5.000000e-01
  %130 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZN7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %5, i32 noundef 1)
  store float %129, ptr %130, align 4, !tbaa !12
  %131 = fmul float %114, -5.000000e-01
  %132 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZN7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %5, i32 noundef 2)
  store float %131, ptr %132, align 4, !tbaa !12
  br label %.peel.next27.2

.peel.next27.2:                                   ; preds = %126, %.peel.next27.1
  %.1.1 = phi float [ %124, %126 ], [ %.1, %.peel.next27.1 ]
  %133 = load float, ptr %2, align 4, !tbaa !5
  %134 = load float, ptr %3, align 4, !tbaa !10
  %135 = fneg float %134
  %136 = load float, ptr %4, align 4, !tbaa !11
  %137 = fneg float %136
  %138 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %1, i32 noundef 0)
  %139 = load float, ptr %138, align 4, !tbaa !12
  %140 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %1, i32 noundef 1)
  %141 = load float, ptr %140, align 4, !tbaa !12
  %142 = fmul float %141, %135
  %143 = tail call float @llvm.fmuladd.f32(float %133, float %139, float %142)
  %144 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %1, i32 noundef 2)
  %145 = load float, ptr %144, align 4, !tbaa !12
  %146 = tail call float @llvm.fmuladd.f32(float %137, float %145, float %143)
  %147 = fcmp ogt float %146, %.1.1
  br i1 %147, label %148, label %.peel.next27.3

148:                                              ; preds = %.peel.next27.2
  store i32 6, ptr %0, align 4, !tbaa !13
  %149 = fmul float %133, 5.000000e-01
  %150 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZN7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %5, i32 noundef 0)
  store float %149, ptr %150, align 4, !tbaa !12
  %151 = fmul float %134, -5.000000e-01
  %152 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZN7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %5, i32 noundef 1)
  store float %151, ptr %152, align 4, !tbaa !12
  %153 = fmul float %136, -5.000000e-01
  %154 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZN7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %5, i32 noundef 2)
  store float %153, ptr %154, align 4, !tbaa !12
  br label %.peel.next27.3

.peel.next27.3:                                   ; preds = %148, %.peel.next27.2
  %.1.2 = phi float [ %146, %148 ], [ %.1.1, %.peel.next27.2 ]
  %155 = load float, ptr %2, align 4, !tbaa !5
  %156 = fneg float %155
  %157 = load float, ptr %3, align 4, !tbaa !10
  %158 = fneg float %157
  %159 = load float, ptr %4, align 4, !tbaa !11
  %160 = fneg float %159
  %161 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %1, i32 noundef 0)
  %162 = load float, ptr %161, align 4, !tbaa !12
  %163 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %1, i32 noundef 1)
  %164 = load float, ptr %163, align 4, !tbaa !12
  %165 = fmul float %164, %158
  %166 = tail call float @llvm.fmuladd.f32(float %156, float %162, float %165)
  %167 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %1, i32 noundef 2)
  %168 = load float, ptr %167, align 4, !tbaa !12
  %169 = tail call float @llvm.fmuladd.f32(float %160, float %168, float %166)
  %170 = fcmp ogt float %169, %.1.2
  br i1 %170, label %171, label %.loopexit

171:                                              ; preds = %.peel.next27.3
  store i32 7, ptr %0, align 4, !tbaa !13
  %172 = fmul float %155, -5.000000e-01
  %173 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZN7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %5, i32 noundef 0)
  store float %172, ptr %173, align 4, !tbaa !12
  %174 = fmul float %157, -5.000000e-01
  %175 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZN7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %5, i32 noundef 1)
  store float %174, ptr %175, align 4, !tbaa !12
  %176 = fmul float %159, -5.000000e-01
  %177 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZN7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %5, i32 noundef 2)
  store float %176, ptr %177, align 4, !tbaa !12
  br label %.loopexit

.loopexit:                                        ; preds = %171, %.peel.next27.3
  ret void
}

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

!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 = !{!"_ZTSN8geometry5types11shapeCube_tE", !7, i64 0, !7, i64 4, !7, i64 8}
!7 = !{!"float", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!6, !7, i64 4}
!11 = !{!6, !7, i64 8}
!12 = !{!7, !7, i64 0}
!13 = !{!14, !15, i64 0}
!14 = !{!"_ZTSN8geometry5types15labeledVertex_tE", !15, i64 0, !16, i64 4}
!15 = !{!"int", !8, i64 0}
!16 = !{!"_ZTS7Vector3", !8, i64 0}


; Effective O3 passes: BDCEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopFullUnrollPass,LoopRotatePass,LoopUnrollPass,PostOrderFunctionAttrsPass,SCCPPass,SROAPass,SimplifyCFGPass,TailCallElimPass