; LLVM IR from Mithreindeir/VelocityRaptor :: VelocityRaptor/src (vrRigidBody)

; 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.vrVec2 = type { float, float }
%struct.vrRigidBody = type { %struct.vrVec2, %struct.vrVec2, %struct.vrVec2, %struct.vrVec2, float, float, float, float, %struct.vrCollisionGroup, %struct.vrMaterial, ptr, %struct.vrColor, %struct.vrVec2, %struct.vrOrientedBoundingBox, ptr, i32 }
%struct.vrCollisionGroup = type { i32, i32 }
%struct.vrMaterial = type { float, float, float, float, float, float, float, float }
%struct.vrColor = type { float, float, float }
%struct.vrOrientedBoundingBox = type { %struct.vrVec2, %struct.vrVec2 }
%struct.vrArray = type { ptr, i32, i32, i32, i32 }
%struct.vrShape = type { ptr, i32, ptr, ptr, ptr, ptr, %struct.vrOrientedBoundingBox }

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

declare <2 x float> @vrVect(float noundef, float noundef) #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: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

declare <2 x float> @vrAdd(<2 x float>, <2 x float>) #1

declare <2 x float> @vrScale(<2 x float>, float noundef) #1

; Function Attrs: nounwind uwtable
define dso_local void @vrBodySet(ptr noundef %0, <2 x float> %1, float noundef %2) #3 {
  %4 = alloca %struct.vrVec2, align 4
  %5 = alloca ptr, align 8
  %6 = alloca float, align 4
  %7 = alloca %struct.vrVec2, align 4
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca float, align 4
  %11 = alloca %struct.vrVec2, align 4
  %12 = alloca i32, align 4
  %13 = alloca ptr, align 8
  %14 = alloca %struct.vrVec2, align 4
  %15 = alloca %struct.vrVec2, align 4
  %16 = alloca %struct.vrVec2, align 4
  %17 = alloca i32, align 4
  %18 = alloca ptr, align 8
  store <2 x float> %1, ptr %4, align 4
  store ptr %0, ptr %5, align 8, !tbaa !5
  store float %2, ptr %6, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #4
  %19 = load ptr, ptr %5, align 8, !tbaa !5
  %20 = getelementptr inbounds %struct.vrRigidBody, ptr %19, i32 0, i32 0
  %21 = load <2 x float>, ptr %4, align 4
  %22 = load <2 x float>, ptr %20, align 8
  %23 = call <2 x float> @vrSub(<2 x float> %21, <2 x float> %22)
  store <2 x float> %23, ptr %7, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #4
  store i32 0, ptr %8, align 4, !tbaa !11
  br label %24

24:                                               ; preds = %51, %3
  %25 = load i32, ptr %8, align 4, !tbaa !11
  %26 = load ptr, ptr %5, align 8, !tbaa !5
  %27 = getelementptr inbounds %struct.vrRigidBody, ptr %26, i32 0, i32 10
  %28 = load ptr, ptr %27, align 8, !tbaa !13
  %29 = getelementptr inbounds %struct.vrArray, ptr %28, i32 0, i32 1
  %30 = load i32, ptr %29, align 8, !tbaa !20
  %31 = icmp slt i32 %25, %30
  br i1 %31, label %33, label %32

32:                                               ; preds = %24
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #4
  br label %54

33:                                               ; preds = %24
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #4
  %34 = load ptr, ptr %5, align 8, !tbaa !5
  %35 = getelementptr inbounds %struct.vrRigidBody, ptr %34, i32 0, i32 10
  %36 = load ptr, ptr %35, align 8, !tbaa !13
  %37 = getelementptr inbounds %struct.vrArray, ptr %36, i32 0, i32 0
  %38 = load ptr, ptr %37, align 8, !tbaa !22
  %39 = load i32, ptr %8, align 4, !tbaa !11
  %40 = sext i32 %39 to i64
  %41 = getelementptr inbounds ptr, ptr %38, i64 %40
  %42 = load ptr, ptr %41, align 8, !tbaa !5
  store ptr %42, ptr %9, align 8, !tbaa !5
  %43 = load ptr, ptr %9, align 8, !tbaa !5
  %44 = getelementptr inbounds %struct.vrShape, ptr %43, i32 0, i32 2
  %45 = load ptr, ptr %44, align 8, !tbaa !23
  %46 = load ptr, ptr %9, align 8, !tbaa !5
  %47 = getelementptr inbounds %struct.vrShape, ptr %46, i32 0, i32 0
  %48 = load ptr, ptr %47, align 8, !tbaa !25
  %49 = load <2 x float>, ptr %7, align 4
  %50 = call ptr %45(ptr noundef %48, <2 x float> %49)
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  br label %51

51:                                               ; preds = %33
  %52 = load i32, ptr %8, align 4, !tbaa !11
  %53 = add nsw i32 %52, 1
  store i32 %53, ptr %8, align 4, !tbaa !11
  br label %24, !llvm.loop !26

54:                                               ; preds = %32
  %55 = load ptr, ptr %5, align 8, !tbaa !5
  %56 = getelementptr inbounds %struct.vrRigidBody, ptr %55, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %56, ptr align 4 %7, i64 8, i1 false), !tbaa.struct !28
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #4
  %57 = load float, ptr %6, align 4, !tbaa !9
  %58 = load ptr, ptr %5, align 8, !tbaa !5
  %59 = getelementptr inbounds %struct.vrRigidBody, ptr %58, i32 0, i32 4
  %60 = load float, ptr %59, align 8, !tbaa !29
  %61 = fsub float %57, %60
  store float %61, ptr %10, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #4
  %62 = call <2 x float> @vrVect(float noundef 0.000000e+00, float noundef 0.000000e+00)
  store <2 x float> %62, ptr %11, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #4
  store i32 0, ptr %12, align 4, !tbaa !11
  br label %63

63:                                               ; preds = %92, %54
  %64 = load i32, ptr %12, align 4, !tbaa !11
  %65 = load ptr, ptr %5, align 8, !tbaa !5
  %66 = getelementptr inbounds %struct.vrRigidBody, ptr %65, i32 0, i32 10
  %67 = load ptr, ptr %66, align 8, !tbaa !13
  %68 = getelementptr inbounds %struct.vrArray, ptr %67, i32 0, i32 1
  %69 = load i32, ptr %68, align 8, !tbaa !20
  %70 = icmp slt i32 %64, %69
  br i1 %70, label %72, label %71

71:                                               ; preds = %63
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #4
  br label %95

72:                                               ; preds = %63
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #4
  %73 = load ptr, ptr %5, align 8, !tbaa !5
  %74 = getelementptr inbounds %struct.vrRigidBody, ptr %73, i32 0, i32 10
  %75 = load ptr, ptr %74, align 8, !tbaa !13
  %76 = getelementptr inbounds %struct.vrArray, ptr %75, i32 0, i32 0
  %77 = load ptr, ptr %76, align 8, !tbaa !22
  %78 = load i32, ptr %12, align 4, !tbaa !11
  %79 = sext i32 %78 to i64
  %80 = getelementptr inbounds ptr, ptr %77, i64 %79
  %81 = load ptr, ptr %80, align 8, !tbaa !5
  store ptr %81, ptr %13, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #4
  %82 = load ptr, ptr %13, align 8, !tbaa !5
  %83 = getelementptr inbounds %struct.vrShape, ptr %82, i32 0, i32 4
  %84 = load ptr, ptr %83, align 8, !tbaa !30
  %85 = load ptr, ptr %13, align 8, !tbaa !5
  %86 = getelementptr inbounds %struct.vrShape, ptr %85, i32 0, i32 0
  %87 = load ptr, ptr %86, align 8, !tbaa !25
  %88 = call <2 x float> %84(ptr noundef %87)
  store <2 x float> %88, ptr %15, align 4
  %89 = load <2 x float>, ptr %11, align 4
  %90 = load <2 x float>, ptr %15, align 4
  %91 = call <2 x float> @vrAdd(<2 x float> %89, <2 x float> %90)
  store <2 x float> %91, ptr %14, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %11, ptr align 4 %14, i64 8, i1 false), !tbaa.struct !28
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #4
  br label %92

92:                                               ; preds = %72
  %93 = load i32, ptr %12, align 4, !tbaa !11
  %94 = add nsw i32 %93, 1
  store i32 %94, ptr %12, align 4, !tbaa !11
  br label %63, !llvm.loop !31

95:                                               ; preds = %71
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #4
  %96 = load ptr, ptr %5, align 8, !tbaa !5
  %97 = getelementptr inbounds %struct.vrRigidBody, ptr %96, i32 0, i32 10
  %98 = load ptr, ptr %97, align 8, !tbaa !13
  %99 = getelementptr inbounds %struct.vrArray, ptr %98, i32 0, i32 1
  %100 = load i32, ptr %99, align 8, !tbaa !20
  %101 = sitofp i32 %100 to double
  %102 = fdiv double 1.000000e+00, %101
  %103 = fptrunc double %102 to float
  %104 = load <2 x float>, ptr %11, align 4
  %105 = call <2 x float> @vrScale(<2 x float> %104, float noundef %103)
  store <2 x float> %105, ptr %16, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %11, ptr align 4 %16, i64 8, i1 false), !tbaa.struct !28
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #4
  %106 = load ptr, ptr %5, align 8, !tbaa !5
  %107 = getelementptr inbounds %struct.vrRigidBody, ptr %106, i32 0, i32 12
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %107, ptr align 4 %11, i64 8, i1 false), !tbaa.struct !28
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #4
  store i32 0, ptr %17, align 4, !tbaa !11
  br label %108

108:                                              ; preds = %136, %95
  %109 = load i32, ptr %17, align 4, !tbaa !11
  %110 = load ptr, ptr %5, align 8, !tbaa !5
  %111 = getelementptr inbounds %struct.vrRigidBody, ptr %110, i32 0, i32 10
  %112 = load ptr, ptr %111, align 8, !tbaa !13
  %113 = getelementptr inbounds %struct.vrArray, ptr %112, i32 0, i32 1
  %114 = load i32, ptr %113, align 8, !tbaa !20
  %115 = icmp slt i32 %109, %114
  br i1 %115, label %117, label %116

116:                                              ; preds = %108
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #4
  br label %139

117:                                              ; preds = %108
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #4
  %118 = load ptr, ptr %5, align 8, !tbaa !5
  %119 = getelementptr inbounds %struct.vrRigidBody, ptr %118, i32 0, i32 10
  %120 = load ptr, ptr %119, align 8, !tbaa !13
  %121 = getelementptr inbounds %struct.vrArray, ptr %120, i32 0, i32 0
  %122 = load ptr, ptr %121, align 8, !tbaa !22
  %123 = load i32, ptr %17, align 4, !tbaa !11
  %124 = sext i32 %123 to i64
  %125 = getelementptr inbounds ptr, ptr %122, i64 %124
  %126 = load ptr, ptr %125, align 8, !tbaa !5
  store ptr %126, ptr %18, align 8, !tbaa !5
  %127 = load ptr, ptr %18, align 8, !tbaa !5
  %128 = getelementptr inbounds %struct.vrShape, ptr %127, i32 0, i32 3
  %129 = load ptr, ptr %128, align 8, !tbaa !32
  %130 = load ptr, ptr %18, align 8, !tbaa !5
  %131 = getelementptr inbounds %struct.vrShape, ptr %130, i32 0, i32 0
  %132 = load ptr, ptr %131, align 8, !tbaa !25
  %133 = load float, ptr %10, align 4, !tbaa !9
  %134 = load <2 x float>, ptr %11, align 4
  %135 = call ptr %129(ptr noundef %132, float noundef %133, <2 x float> %134)
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #4
  br label %136

136:                                              ; preds = %117
  %137 = load i32, ptr %17, align 4, !tbaa !11
  %138 = add nsw i32 %137, 1
  store i32 %138, ptr %17, align 4, !tbaa !11
  br label %108, !llvm.loop !33

139:                                              ; preds = %116
  %140 = load float, ptr %6, align 4, !tbaa !9
  %141 = load ptr, ptr %5, align 8, !tbaa !5
  %142 = getelementptr inbounds %struct.vrRigidBody, ptr %141, i32 0, i32 4
  store float %140, ptr %142, align 8, !tbaa !29
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #4
  ret void
}

declare <2 x float> @vrSub(<2 x float>, <2 x float>) #1

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 = { 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/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"float", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !6, i64 88}
!14 = !{!"vrRigidBody", !15, i64 0, !15, i64 8, !15, i64 16, !15, i64 24, !10, i64 32, !10, i64 36, !10, i64 40, !10, i64 44, !16, i64 48, !17, i64 56, !6, i64 88, !18, i64 96, !15, i64 108, !19, i64 116, !6, i64 136, !12, i64 144}
!15 = !{!"vrVec2", !10, i64 0, !10, i64 4}
!16 = !{!"vrCollisionGroup", !12, i64 0, !12, i64 4}
!17 = !{!"vrMaterial", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !10, i64 24, !10, i64 28}
!18 = !{!"vrColor", !10, i64 0, !10, i64 4, !10, i64 8}
!19 = !{!"vrOrientedBoundingBox", !15, i64 0, !15, i64 8}
!20 = !{!21, !12, i64 8}
!21 = !{!"vrArray", !6, i64 0, !12, i64 8, !12, i64 12, !12, i64 16, !12, i64 20}
!22 = !{!21, !6, i64 0}
!23 = !{!24, !6, i64 16}
!24 = !{!"vrShape", !6, i64 0, !12, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !19, i64 48}
!25 = !{!24, !6, i64 0}
!26 = distinct !{!26, !27}
!27 = !{!"llvm.loop.mustprogress"}
!28 = !{i64 0, i64 4, !9, i64 4, i64 4, !9}
!29 = !{!14, !10, i64 32}
!30 = !{!24, !6, i64 32}
!31 = distinct !{!31, !27}
!32 = !{!24, !6, i64 24}
!33 = distinct !{!33, !27}


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

declare <2 x float> @vrVect(float noundef, float noundef) local_unnamed_addr #0

declare <2 x float> @vrAdd(<2 x float>, <2 x float>) local_unnamed_addr #0

declare <2 x float> @vrScale(<2 x float>, float noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
define dso_local void @vrBodySet(ptr nocapture noundef %0, <2 x float> %1, float noundef %2) local_unnamed_addr #1 {
  %4 = load <2 x float>, ptr %0, align 8
  %5 = tail call <2 x float> @vrSub(<2 x float> %1, <2 x float> %4) #2
  %6 = getelementptr inbounds i8, ptr %0, i64 88
  %7 = load ptr, ptr %6, align 8, !tbaa !5
  %8 = getelementptr inbounds i8, ptr %7, i64 8
  %9 = load i32, ptr %8, align 8, !tbaa !17
  %10 = icmp sgt i32 %9, 0
  br i1 %10, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %.lr.ph, %3
  store <2 x float> %5, ptr %0, align 8
  %11 = getelementptr inbounds i8, ptr %0, i64 32
  %12 = load float, ptr %11, align 8, !tbaa !19
  %13 = fsub float %2, %12
  %14 = tail call <2 x float> @vrVect(float noundef 0.000000e+00, float noundef 0.000000e+00) #2
  %15 = load ptr, ptr %6, align 8, !tbaa !5
  %16 = getelementptr inbounds i8, ptr %15, i64 8
  %17 = load i32, ptr %16, align 8, !tbaa !17
  %18 = icmp sgt i32 %17, 0
  br i1 %18, label %.lr.ph44, label %._crit_edge45

.lr.ph:                                           ; preds = %3, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 0, %3 ]
  %19 = phi ptr [ %27, %.lr.ph ], [ %7, %3 ]
  %20 = load ptr, ptr %19, align 8, !tbaa !20
  %21 = getelementptr inbounds ptr, ptr %20, i64 %indvars.iv
  %22 = load ptr, ptr %21, align 8, !tbaa !21
  %23 = getelementptr inbounds i8, ptr %22, i64 16
  %24 = load ptr, ptr %23, align 8, !tbaa !22
  %25 = load ptr, ptr %22, align 8, !tbaa !24
  %26 = tail call ptr %24(ptr noundef %25, <2 x float> %5) #2
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %27 = load ptr, ptr %6, align 8, !tbaa !5
  %28 = getelementptr inbounds i8, ptr %27, i64 8
  %29 = load i32, ptr %28, align 8, !tbaa !17
  %30 = sext i32 %29 to i64
  %31 = icmp slt i64 %indvars.iv.next, %30
  br i1 %31, label %.lr.ph, label %._crit_edge, !llvm.loop !25

._crit_edge45:                                    ; preds = %.lr.ph44, %._crit_edge
  %.sroa.011.0.lcssa = phi <2 x float> [ %14, %._crit_edge ], [ %49, %.lr.ph44 ]
  %.lcssa = phi i32 [ %17, %._crit_edge ], [ %52, %.lr.ph44 ]
  %32 = sitofp i32 %.lcssa to double
  %33 = fdiv double 1.000000e+00, %32
  %34 = fptrunc double %33 to float
  %35 = tail call <2 x float> @vrScale(<2 x float> %.sroa.011.0.lcssa, float noundef %34) #2
  %36 = getelementptr inbounds i8, ptr %0, i64 108
  store <2 x float> %35, ptr %36, align 4
  %37 = load ptr, ptr %6, align 8, !tbaa !5
  %38 = getelementptr inbounds i8, ptr %37, i64 8
  %39 = load i32, ptr %38, align 8, !tbaa !17
  %40 = icmp sgt i32 %39, 0
  br i1 %40, label %.lr.ph49, label %._crit_edge50

.lr.ph44:                                         ; preds = %._crit_edge, %.lr.ph44
  %indvars.iv54 = phi i64 [ %indvars.iv.next55, %.lr.ph44 ], [ 0, %._crit_edge ]
  %41 = phi ptr [ %50, %.lr.ph44 ], [ %15, %._crit_edge ]
  %.sroa.011.042 = phi <2 x float> [ %49, %.lr.ph44 ], [ %14, %._crit_edge ]
  %42 = load ptr, ptr %41, align 8, !tbaa !20
  %43 = getelementptr inbounds ptr, ptr %42, i64 %indvars.iv54
  %44 = load ptr, ptr %43, align 8, !tbaa !21
  %45 = getelementptr inbounds i8, ptr %44, i64 32
  %46 = load ptr, ptr %45, align 8, !tbaa !27
  %47 = load ptr, ptr %44, align 8, !tbaa !24
  %48 = tail call <2 x float> %46(ptr noundef %47) #2
  %49 = tail call <2 x float> @vrAdd(<2 x float> %.sroa.011.042, <2 x float> %48) #2
  %indvars.iv.next55 = add nuw nsw i64 %indvars.iv54, 1
  %50 = load ptr, ptr %6, align 8, !tbaa !5
  %51 = getelementptr inbounds i8, ptr %50, i64 8
  %52 = load i32, ptr %51, align 8, !tbaa !17
  %53 = sext i32 %52 to i64
  %54 = icmp slt i64 %indvars.iv.next55, %53
  br i1 %54, label %.lr.ph44, label %._crit_edge45, !llvm.loop !28

._crit_edge50:                                    ; preds = %.lr.ph49, %._crit_edge45
  store float %2, ptr %11, align 8, !tbaa !19
  ret void

.lr.ph49:                                         ; preds = %._crit_edge45, %.lr.ph49
  %indvars.iv57 = phi i64 [ %indvars.iv.next58, %.lr.ph49 ], [ 0, %._crit_edge45 ]
  %55 = phi ptr [ %63, %.lr.ph49 ], [ %37, %._crit_edge45 ]
  %56 = load ptr, ptr %55, align 8, !tbaa !20
  %57 = getelementptr inbounds ptr, ptr %56, i64 %indvars.iv57
  %58 = load ptr, ptr %57, align 8, !tbaa !21
  %59 = getelementptr inbounds i8, ptr %58, i64 24
  %60 = load ptr, ptr %59, align 8, !tbaa !29
  %61 = load ptr, ptr %58, align 8, !tbaa !24
  %62 = tail call ptr %60(ptr noundef %61, float noundef %13, <2 x float> %35) #2
  %indvars.iv.next58 = add nuw nsw i64 %indvars.iv57, 1
  %63 = load ptr, ptr %6, align 8, !tbaa !5
  %64 = getelementptr inbounds i8, ptr %63, i64 8
  %65 = load i32, ptr %64, align 8, !tbaa !17
  %66 = sext i32 %65 to i64
  %67 = icmp slt i64 %indvars.iv.next58, %66
  br i1 %67, label %.lr.ph49, label %._crit_edge50, !llvm.loop !30
}

declare <2 x float> @vrSub(<2 x float>, <2 x float>) local_unnamed_addr #0

attributes #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 = { 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 #2 = { 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, !14, i64 88}
!6 = !{!"vrRigidBody", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !8, i64 32, !8, i64 36, !8, i64 40, !8, i64 44, !11, i64 48, !13, i64 56, !14, i64 88, !15, i64 96, !7, i64 108, !16, i64 116, !14, i64 136, !12, i64 144}
!7 = !{!"vrVec2", !8, i64 0, !8, i64 4}
!8 = !{!"float", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!"vrCollisionGroup", !12, i64 0, !12, i64 4}
!12 = !{!"int", !9, i64 0}
!13 = !{!"vrMaterial", !8, i64 0, !8, i64 4, !8, i64 8, !8, i64 12, !8, i64 16, !8, i64 20, !8, i64 24, !8, i64 28}
!14 = !{!"any pointer", !9, i64 0}
!15 = !{!"vrColor", !8, i64 0, !8, i64 4, !8, i64 8}
!16 = !{!"vrOrientedBoundingBox", !7, i64 0, !7, i64 8}
!17 = !{!18, !12, i64 8}
!18 = !{!"vrArray", !14, i64 0, !12, i64 8, !12, i64 12, !12, i64 16, !12, i64 20}
!19 = !{!6, !8, i64 32}
!20 = !{!18, !14, i64 0}
!21 = !{!14, !14, i64 0}
!22 = !{!23, !14, i64 16}
!23 = !{!"vrShape", !14, i64 0, !12, i64 8, !14, i64 16, !14, i64 24, !14, i64 32, !14, i64 40, !16, i64 48}
!24 = !{!23, !14, i64 0}
!25 = distinct !{!25, !26}
!26 = !{!"llvm.loop.mustprogress"}
!27 = !{!23, !14, i64 32}
!28 = distinct !{!28, !26}
!29 = !{!23, !14, i64 24}
!30 = distinct !{!30, !26}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass