; 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.vrOrientedBoundingBox = type { %struct.vrVec2, %struct.vrVec2 }
%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.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: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #3

; Function Attrs: nounwind uwtable
define dso_local void @vrBodyIntegrateVelocity(ptr noundef %0, float noundef %1) #4 {
  %3 = alloca ptr, align 8
  %4 = alloca float, align 4
  %5 = alloca %struct.vrVec2, align 4
  %6 = alloca %struct.vrVec2, align 4
  %7 = alloca %struct.vrVec2, align 4
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca %struct.vrVec2, align 4
  %11 = alloca %struct.vrVec2, align 4
  %12 = alloca %struct.vrVec2, align 4
  %13 = alloca i32, align 4
  %14 = alloca ptr, align 8
  %15 = alloca %struct.vrVec2, align 4
  %16 = alloca %struct.vrVec2, align 4
  %17 = alloca %struct.vrVec2, align 4
  %18 = alloca i32, align 4
  %19 = alloca ptr, align 8
  %20 = alloca i32, align 4
  %21 = alloca ptr, align 8
  %22 = alloca %struct.vrOrientedBoundingBox, align 4
  %23 = alloca %struct.vrVec2, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  store float %1, ptr %4, align 4, !tbaa !9
  %24 = load ptr, ptr %3, align 8, !tbaa !5
  %25 = getelementptr inbounds %struct.vrRigidBody, ptr %24, i32 0, i32 0
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #5
  %26 = load ptr, ptr %3, align 8, !tbaa !5
  %27 = getelementptr inbounds %struct.vrRigidBody, ptr %26, i32 0, i32 0
  %28 = load ptr, ptr %3, align 8, !tbaa !5
  %29 = getelementptr inbounds %struct.vrRigidBody, ptr %28, i32 0, i32 1
  %30 = load ptr, ptr %3, align 8, !tbaa !5
  %31 = getelementptr inbounds %struct.vrRigidBody, ptr %30, i32 0, i32 3
  %32 = load <2 x float>, ptr %29, align 8
  %33 = load <2 x float>, ptr %31, align 8
  %34 = call <2 x float> @vrAdd(<2 x float> %32, <2 x float> %33)
  store <2 x float> %34, ptr %7, align 4
  %35 = load float, ptr %4, align 4, !tbaa !9
  %36 = load <2 x float>, ptr %7, align 4
  %37 = call <2 x float> @vrScale(<2 x float> %36, float noundef %35)
  store <2 x float> %37, ptr %6, align 4
  %38 = load <2 x float>, ptr %27, align 8
  %39 = load <2 x float>, ptr %6, align 4
  %40 = call <2 x float> @vrAdd(<2 x float> %38, <2 x float> %39)
  store <2 x float> %40, ptr %5, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %25, ptr align 4 %5, i64 8, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  store i32 0, ptr %8, align 4, !tbaa !12
  br label %41

41:                                               ; preds = %78, %2
  %42 = load i32, ptr %8, align 4, !tbaa !12
  %43 = load ptr, ptr %3, align 8, !tbaa !5
  %44 = getelementptr inbounds %struct.vrRigidBody, ptr %43, i32 0, i32 10
  %45 = load ptr, ptr %44, align 8, !tbaa !14
  %46 = getelementptr inbounds %struct.vrArray, ptr %45, i32 0, i32 1
  %47 = load i32, ptr %46, align 8, !tbaa !21
  %48 = icmp slt i32 %42, %47
  br i1 %48, label %50, label %49

49:                                               ; preds = %41
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  br label %81

50:                                               ; preds = %41
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  %51 = load ptr, ptr %3, align 8, !tbaa !5
  %52 = getelementptr inbounds %struct.vrRigidBody, ptr %51, i32 0, i32 10
  %53 = load ptr, ptr %52, align 8, !tbaa !14
  %54 = getelementptr inbounds %struct.vrArray, ptr %53, i32 0, i32 0
  %55 = load ptr, ptr %54, align 8, !tbaa !23
  %56 = load i32, ptr %8, align 4, !tbaa !12
  %57 = sext i32 %56 to i64
  %58 = getelementptr inbounds ptr, ptr %55, i64 %57
  %59 = load ptr, ptr %58, align 8, !tbaa !5
  store ptr %59, ptr %9, align 8, !tbaa !5
  %60 = load ptr, ptr %9, align 8, !tbaa !5
  %61 = getelementptr inbounds %struct.vrShape, ptr %60, i32 0, i32 2
  %62 = load ptr, ptr %61, align 8, !tbaa !24
  %63 = load ptr, ptr %9, align 8, !tbaa !5
  %64 = getelementptr inbounds %struct.vrShape, ptr %63, i32 0, i32 0
  %65 = load ptr, ptr %64, align 8, !tbaa !26
  %66 = load ptr, ptr %3, align 8, !tbaa !5
  %67 = getelementptr inbounds %struct.vrRigidBody, ptr %66, i32 0, i32 1
  %68 = load ptr, ptr %3, align 8, !tbaa !5
  %69 = getelementptr inbounds %struct.vrRigidBody, ptr %68, i32 0, i32 3
  %70 = load <2 x float>, ptr %67, align 8
  %71 = load <2 x float>, ptr %69, align 8
  %72 = call <2 x float> @vrAdd(<2 x float> %70, <2 x float> %71)
  store <2 x float> %72, ptr %11, align 4
  %73 = load float, ptr %4, align 4, !tbaa !9
  %74 = load <2 x float>, ptr %11, align 4
  %75 = call <2 x float> @vrScale(<2 x float> %74, float noundef %73)
  store <2 x float> %75, ptr %10, align 4
  %76 = load <2 x float>, ptr %10, align 4
  %77 = call ptr %62(ptr noundef %65, <2 x float> %76)
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  br label %78

78:                                               ; preds = %50
  %79 = load i32, ptr %8, align 4, !tbaa !12
  %80 = add nsw i32 %79, 1
  store i32 %80, ptr %8, align 4, !tbaa !12
  br label %41, !llvm.loop !27

81:                                               ; preds = %49
  %82 = load ptr, ptr %3, align 8, !tbaa !5
  %83 = getelementptr inbounds %struct.vrRigidBody, ptr %82, i32 0, i32 7
  %84 = load float, ptr %83, align 4, !tbaa !29
  %85 = load ptr, ptr %3, align 8, !tbaa !5
  %86 = getelementptr inbounds %struct.vrRigidBody, ptr %85, i32 0, i32 5
  %87 = load float, ptr %86, align 4, !tbaa !30
  %88 = fadd float %84, %87
  %89 = load float, ptr %4, align 4, !tbaa !9
  %90 = load ptr, ptr %3, align 8, !tbaa !5
  %91 = getelementptr inbounds %struct.vrRigidBody, ptr %90, i32 0, i32 4
  %92 = load float, ptr %91, align 8, !tbaa !31
  %93 = call float @llvm.fmuladd.f32(float %88, float %89, float %92)
  store float %93, ptr %91, align 8, !tbaa !31
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  %94 = call <2 x float> @vrVect(float noundef 0.000000e+00, float noundef 0.000000e+00)
  store <2 x float> %94, ptr %12, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #5
  store i32 0, ptr %13, align 4, !tbaa !12
  br label %95

95:                                               ; preds = %124, %81
  %96 = load i32, ptr %13, align 4, !tbaa !12
  %97 = load ptr, ptr %3, align 8, !tbaa !5
  %98 = getelementptr inbounds %struct.vrRigidBody, ptr %97, i32 0, i32 10
  %99 = load ptr, ptr %98, align 8, !tbaa !14
  %100 = getelementptr inbounds %struct.vrArray, ptr %99, i32 0, i32 1
  %101 = load i32, ptr %100, align 8, !tbaa !21
  %102 = icmp slt i32 %96, %101
  br i1 %102, label %104, label %103

103:                                              ; preds = %95
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  br label %127

104:                                              ; preds = %95
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  %105 = load ptr, ptr %3, align 8, !tbaa !5
  %106 = getelementptr inbounds %struct.vrRigidBody, ptr %105, i32 0, i32 10
  %107 = load ptr, ptr %106, align 8, !tbaa !14
  %108 = getelementptr inbounds %struct.vrArray, ptr %107, i32 0, i32 0
  %109 = load ptr, ptr %108, align 8, !tbaa !23
  %110 = load i32, ptr %13, align 4, !tbaa !12
  %111 = sext i32 %110 to i64
  %112 = getelementptr inbounds ptr, ptr %109, i64 %111
  %113 = load ptr, ptr %112, align 8, !tbaa !5
  store ptr %113, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #5
  %114 = load ptr, ptr %14, align 8, !tbaa !5
  %115 = getelementptr inbounds %struct.vrShape, ptr %114, i32 0, i32 4
  %116 = load ptr, ptr %115, align 8, !tbaa !32
  %117 = load ptr, ptr %14, align 8, !tbaa !5
  %118 = getelementptr inbounds %struct.vrShape, ptr %117, i32 0, i32 0
  %119 = load ptr, ptr %118, align 8, !tbaa !26
  %120 = call <2 x float> %116(ptr noundef %119)
  store <2 x float> %120, ptr %16, align 4
  %121 = load <2 x float>, ptr %12, align 4
  %122 = load <2 x float>, ptr %16, align 4
  %123 = call <2 x float> @vrAdd(<2 x float> %121, <2 x float> %122)
  store <2 x float> %123, ptr %15, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %12, ptr align 4 %15, i64 8, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  br label %124

124:                                              ; preds = %104
  %125 = load i32, ptr %13, align 4, !tbaa !12
  %126 = add nsw i32 %125, 1
  store i32 %126, ptr %13, align 4, !tbaa !12
  br label %95, !llvm.loop !33

127:                                              ; preds = %103
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #5
  %128 = load ptr, ptr %3, align 8, !tbaa !5
  %129 = getelementptr inbounds %struct.vrRigidBody, ptr %128, i32 0, i32 10
  %130 = load ptr, ptr %129, align 8, !tbaa !14
  %131 = getelementptr inbounds %struct.vrArray, ptr %130, i32 0, i32 1
  %132 = load i32, ptr %131, align 8, !tbaa !21
  %133 = sitofp i32 %132 to double
  %134 = fdiv double 1.000000e+00, %133
  %135 = fptrunc double %134 to float
  %136 = load <2 x float>, ptr %12, align 4
  %137 = call <2 x float> @vrScale(<2 x float> %136, float noundef %135)
  store <2 x float> %137, 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) #5
  %138 = load ptr, ptr %3, align 8, !tbaa !5
  %139 = getelementptr inbounds %struct.vrRigidBody, ptr %138, i32 0, i32 12
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %139, ptr align 4 %12, i64 8, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #5
  store i32 0, ptr %18, align 4, !tbaa !12
  br label %140

140:                                              ; preds = %176, %127
  %141 = load i32, ptr %18, align 4, !tbaa !12
  %142 = load ptr, ptr %3, align 8, !tbaa !5
  %143 = getelementptr inbounds %struct.vrRigidBody, ptr %142, i32 0, i32 10
  %144 = load ptr, ptr %143, align 8, !tbaa !14
  %145 = getelementptr inbounds %struct.vrArray, ptr %144, i32 0, i32 1
  %146 = load i32, ptr %145, align 8, !tbaa !21
  %147 = icmp slt i32 %141, %146
  br i1 %147, label %149, label %148

148:                                              ; preds = %140
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #5
  br label %179

149:                                              ; preds = %140
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #5
  %150 = load ptr, ptr %3, align 8, !tbaa !5
  %151 = getelementptr inbounds %struct.vrRigidBody, ptr %150, i32 0, i32 10
  %152 = load ptr, ptr %151, align 8, !tbaa !14
  %153 = getelementptr inbounds %struct.vrArray, ptr %152, i32 0, i32 0
  %154 = load ptr, ptr %153, align 8, !tbaa !23
  %155 = load i32, ptr %18, align 4, !tbaa !12
  %156 = sext i32 %155 to i64
  %157 = getelementptr inbounds ptr, ptr %154, i64 %156
  %158 = load ptr, ptr %157, align 8, !tbaa !5
  store ptr %158, ptr %19, align 8, !tbaa !5
  %159 = load ptr, ptr %19, align 8, !tbaa !5
  %160 = getelementptr inbounds %struct.vrShape, ptr %159, i32 0, i32 3
  %161 = load ptr, ptr %160, align 8, !tbaa !34
  %162 = load ptr, ptr %19, align 8, !tbaa !5
  %163 = getelementptr inbounds %struct.vrShape, ptr %162, i32 0, i32 0
  %164 = load ptr, ptr %163, align 8, !tbaa !26
  %165 = load ptr, ptr %3, align 8, !tbaa !5
  %166 = getelementptr inbounds %struct.vrRigidBody, ptr %165, i32 0, i32 7
  %167 = load float, ptr %166, align 4, !tbaa !29
  %168 = load ptr, ptr %3, align 8, !tbaa !5
  %169 = getelementptr inbounds %struct.vrRigidBody, ptr %168, i32 0, i32 5
  %170 = load float, ptr %169, align 4, !tbaa !30
  %171 = fadd float %167, %170
  %172 = load float, ptr %4, align 4, !tbaa !9
  %173 = fmul float %171, %172
  %174 = load <2 x float>, ptr %12, align 4
  %175 = call ptr %161(ptr noundef %164, float noundef %173, <2 x float> %174)
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #5
  br label %176

176:                                              ; preds = %149
  %177 = load i32, ptr %18, align 4, !tbaa !12
  %178 = add nsw i32 %177, 1
  store i32 %178, ptr %18, align 4, !tbaa !12
  br label %140, !llvm.loop !35

179:                                              ; preds = %148
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #5
  store i32 0, ptr %20, align 4, !tbaa !12
  br label %180

180:                                              ; preds = %212, %179
  %181 = load i32, ptr %20, align 4, !tbaa !12
  %182 = load ptr, ptr %3, align 8, !tbaa !5
  %183 = getelementptr inbounds %struct.vrRigidBody, ptr %182, i32 0, i32 10
  %184 = load ptr, ptr %183, align 8, !tbaa !14
  %185 = getelementptr inbounds %struct.vrArray, ptr %184, i32 0, i32 1
  %186 = load i32, ptr %185, align 8, !tbaa !21
  %187 = icmp slt i32 %181, %186
  br i1 %187, label %189, label %188

188:                                              ; preds = %180
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #5
  br label %215

189:                                              ; preds = %180
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #5
  %190 = load ptr, ptr %3, align 8, !tbaa !5
  %191 = getelementptr inbounds %struct.vrRigidBody, ptr %190, i32 0, i32 10
  %192 = load ptr, ptr %191, align 8, !tbaa !14
  %193 = getelementptr inbounds %struct.vrArray, ptr %192, i32 0, i32 0
  %194 = load ptr, ptr %193, align 8, !tbaa !23
  %195 = load i32, ptr %20, align 4, !tbaa !12
  %196 = sext i32 %195 to i64
  %197 = getelementptr inbounds ptr, ptr %194, i64 %196
  %198 = load ptr, ptr %197, align 8, !tbaa !5
  store ptr %198, ptr %21, align 8, !tbaa !5
  %199 = load ptr, ptr %21, align 8, !tbaa !5
  %200 = getelementptr inbounds %struct.vrShape, ptr %199, i32 0, i32 6
  call void @llvm.lifetime.start.p0(i64 16, ptr %22) #5
  %201 = load ptr, ptr %21, align 8, !tbaa !5
  %202 = getelementptr inbounds %struct.vrShape, ptr %201, i32 0, i32 5
  %203 = load ptr, ptr %202, align 8, !tbaa !36
  %204 = load ptr, ptr %21, align 8, !tbaa !5
  %205 = getelementptr inbounds %struct.vrShape, ptr %204, i32 0, i32 0
  %206 = load ptr, ptr %205, align 8, !tbaa !26
  %207 = call { <2 x float>, <2 x float> } %203(ptr noundef %206)
  %208 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %22, i32 0, i32 0
  %209 = extractvalue { <2 x float>, <2 x float> } %207, 0
  store <2 x float> %209, ptr %208, align 4
  %210 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %22, i32 0, i32 1
  %211 = extractvalue { <2 x float>, <2 x float> } %207, 1
  store <2 x float> %211, ptr %210, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %200, ptr align 4 %22, i64 16, i1 false), !tbaa.struct !37
  call void @llvm.lifetime.end.p0(i64 16, ptr %22) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #5
  br label %212

212:                                              ; preds = %189
  %213 = load i32, ptr %20, align 4, !tbaa !12
  %214 = add nsw i32 %213, 1
  store i32 %214, ptr %20, align 4, !tbaa !12
  br label %180, !llvm.loop !38

215:                                              ; preds = %188
  %216 = load ptr, ptr %3, align 8, !tbaa !5
  call void @vrBodyUpdateOBB(ptr noundef %216)
  %217 = load ptr, ptr %3, align 8, !tbaa !5
  %218 = getelementptr inbounds %struct.vrRigidBody, ptr %217, i32 0, i32 7
  store float 0.000000e+00, ptr %218, align 4, !tbaa !29
  %219 = load ptr, ptr %3, align 8, !tbaa !5
  %220 = getelementptr inbounds %struct.vrRigidBody, ptr %219, i32 0, i32 3
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #5
  %221 = call <2 x float> @vrVect(float noundef 0.000000e+00, float noundef 0.000000e+00)
  store <2 x float> %221, ptr %23, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %220, ptr align 4 %23, i64 8, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  ret void
}

; Function Attrs: nounwind uwtable
declare dso_local void @vrBodyUpdateOBB(ptr noundef) #4

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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { 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 #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/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, !13, i64 0}
!13 = !{!"int", !7, i64 0}
!14 = !{!15, !6, i64 88}
!15 = !{!"vrRigidBody", !16, i64 0, !16, i64 8, !16, i64 16, !16, i64 24, !10, i64 32, !10, i64 36, !10, i64 40, !10, i64 44, !17, i64 48, !18, i64 56, !6, i64 88, !19, i64 96, !16, i64 108, !20, i64 116, !6, i64 136, !13, i64 144}
!16 = !{!"vrVec2", !10, i64 0, !10, i64 4}
!17 = !{!"vrCollisionGroup", !13, i64 0, !13, i64 4}
!18 = !{!"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}
!19 = !{!"vrColor", !10, i64 0, !10, i64 4, !10, i64 8}
!20 = !{!"vrOrientedBoundingBox", !16, i64 0, !16, i64 8}
!21 = !{!22, !13, i64 8}
!22 = !{!"vrArray", !6, i64 0, !13, i64 8, !13, i64 12, !13, i64 16, !13, i64 20}
!23 = !{!22, !6, i64 0}
!24 = !{!25, !6, i64 16}
!25 = !{!"vrShape", !6, i64 0, !13, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !20, i64 48}
!26 = !{!25, !6, i64 0}
!27 = distinct !{!27, !28}
!28 = !{!"llvm.loop.mustprogress"}
!29 = !{!15, !10, i64 44}
!30 = !{!15, !10, i64 36}
!31 = !{!15, !10, i64 32}
!32 = !{!25, !6, i64 32}
!33 = distinct !{!33, !28}
!34 = !{!25, !6, i64 24}
!35 = distinct !{!35, !28}
!36 = !{!25, !6, i64 40}
!37 = !{i64 0, i64 4, !9, i64 4, i64 4, !9, i64 8, i64 4, !9, i64 12, i64 4, !9}
!38 = distinct !{!38, !28}


; 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: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #1

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

._crit_edge:                                      ; preds = %.lr.ph, %2
  %16 = getelementptr inbounds i8, ptr %0, i64 44
  %17 = load float, ptr %16, align 4, !tbaa !19
  %18 = getelementptr inbounds i8, ptr %0, i64 36
  %19 = load float, ptr %18, align 4, !tbaa !20
  %20 = fadd float %17, %19
  %21 = getelementptr inbounds i8, ptr %0, i64 32
  %22 = load float, ptr %21, align 8, !tbaa !21
  %23 = tail call float @llvm.fmuladd.f32(float %20, float %1, float %22)
  store float %23, ptr %21, align 8, !tbaa !21
  %24 = tail call <2 x float> @vrVect(float noundef 0.000000e+00, float noundef 0.000000e+00) #3
  %25 = load ptr, ptr %11, align 8, !tbaa !5
  %26 = getelementptr inbounds i8, ptr %25, i64 8
  %27 = load i32, ptr %26, align 8, !tbaa !17
  %28 = icmp sgt i32 %27, 0
  br i1 %28, label %.lr.ph69, label %._crit_edge70

.lr.ph:                                           ; preds = %2, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 0, %2 ]
  %29 = phi ptr [ %41, %.lr.ph ], [ %12, %2 ]
  %30 = load ptr, ptr %29, align 8, !tbaa !22
  %31 = getelementptr inbounds ptr, ptr %30, i64 %indvars.iv
  %32 = load ptr, ptr %31, align 8, !tbaa !23
  %33 = getelementptr inbounds i8, ptr %32, i64 16
  %34 = load ptr, ptr %33, align 8, !tbaa !24
  %35 = load ptr, ptr %32, align 8, !tbaa !26
  %36 = load <2 x float>, ptr %3, align 8
  %37 = load <2 x float>, ptr %4, align 8
  %38 = tail call <2 x float> @vrAdd(<2 x float> %36, <2 x float> %37) #3
  %39 = tail call <2 x float> @vrScale(<2 x float> %38, float noundef %1) #3
  %40 = tail call ptr %34(ptr noundef %35, <2 x float> %39) #3
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %41 = load ptr, ptr %11, align 8, !tbaa !5
  %42 = getelementptr inbounds i8, ptr %41, i64 8
  %43 = load i32, ptr %42, align 8, !tbaa !17
  %44 = sext i32 %43 to i64
  %45 = icmp slt i64 %indvars.iv.next, %44
  br i1 %45, label %.lr.ph, label %._crit_edge, !llvm.loop !27

._crit_edge70:                                    ; preds = %.lr.ph69, %._crit_edge
  %.sroa.019.0.lcssa = phi <2 x float> [ %24, %._crit_edge ], [ %63, %.lr.ph69 ]
  %.lcssa = phi i32 [ %27, %._crit_edge ], [ %66, %.lr.ph69 ]
  %46 = sitofp i32 %.lcssa to double
  %47 = fdiv double 1.000000e+00, %46
  %48 = fptrunc double %47 to float
  %49 = tail call <2 x float> @vrScale(<2 x float> %.sroa.019.0.lcssa, float noundef %48) #3
  %50 = getelementptr inbounds i8, ptr %0, i64 108
  store <2 x float> %49, ptr %50, align 4
  %51 = load ptr, ptr %11, align 8, !tbaa !5
  %52 = getelementptr inbounds i8, ptr %51, i64 8
  %53 = load i32, ptr %52, align 8, !tbaa !17
  %54 = icmp sgt i32 %53, 0
  br i1 %54, label %.lr.ph74, label %._crit_edge77

.lr.ph69:                                         ; preds = %._crit_edge, %.lr.ph69
  %indvars.iv81 = phi i64 [ %indvars.iv.next82, %.lr.ph69 ], [ 0, %._crit_edge ]
  %55 = phi ptr [ %64, %.lr.ph69 ], [ %25, %._crit_edge ]
  %.sroa.019.067 = phi <2 x float> [ %63, %.lr.ph69 ], [ %24, %._crit_edge ]
  %56 = load ptr, ptr %55, align 8, !tbaa !22
  %57 = getelementptr inbounds ptr, ptr %56, i64 %indvars.iv81
  %58 = load ptr, ptr %57, align 8, !tbaa !23
  %59 = getelementptr inbounds i8, ptr %58, i64 32
  %60 = load ptr, ptr %59, align 8, !tbaa !29
  %61 = load ptr, ptr %58, align 8, !tbaa !26
  %62 = tail call <2 x float> %60(ptr noundef %61) #3
  %63 = tail call <2 x float> @vrAdd(<2 x float> %.sroa.019.067, <2 x float> %62) #3
  %indvars.iv.next82 = add nuw nsw i64 %indvars.iv81, 1
  %64 = load ptr, ptr %11, align 8, !tbaa !5
  %65 = getelementptr inbounds i8, ptr %64, i64 8
  %66 = load i32, ptr %65, align 8, !tbaa !17
  %67 = sext i32 %66 to i64
  %68 = icmp slt i64 %indvars.iv.next82, %67
  br i1 %68, label %.lr.ph69, label %._crit_edge70, !llvm.loop !30

.preheader:                                       ; preds = %.lr.ph74
  %69 = icmp sgt i32 %84, 0
  br i1 %69, label %.lr.ph76, label %._crit_edge77

.lr.ph74:                                         ; preds = %._crit_edge70, %.lr.ph74
  %indvars.iv84 = phi i64 [ %indvars.iv.next85, %.lr.ph74 ], [ 0, %._crit_edge70 ]
  %70 = phi ptr [ %82, %.lr.ph74 ], [ %51, %._crit_edge70 ]
  %71 = load ptr, ptr %70, align 8, !tbaa !22
  %72 = getelementptr inbounds ptr, ptr %71, i64 %indvars.iv84
  %73 = load ptr, ptr %72, align 8, !tbaa !23
  %74 = getelementptr inbounds i8, ptr %73, i64 24
  %75 = load ptr, ptr %74, align 8, !tbaa !31
  %76 = load ptr, ptr %73, align 8, !tbaa !26
  %77 = load float, ptr %16, align 4, !tbaa !19
  %78 = load float, ptr %18, align 4, !tbaa !20
  %79 = fadd float %77, %78
  %80 = fmul float %79, %1
  %81 = tail call ptr %75(ptr noundef %76, float noundef %80, <2 x float> %49) #3
  %indvars.iv.next85 = add nuw nsw i64 %indvars.iv84, 1
  %82 = load ptr, ptr %11, align 8, !tbaa !5
  %83 = getelementptr inbounds i8, ptr %82, i64 8
  %84 = load i32, ptr %83, align 8, !tbaa !17
  %85 = sext i32 %84 to i64
  %86 = icmp slt i64 %indvars.iv.next85, %85
  br i1 %86, label %.lr.ph74, label %.preheader, !llvm.loop !32

._crit_edge77:                                    ; preds = %.lr.ph76, %._crit_edge70, %.preheader
  tail call void @vrBodyUpdateOBB(ptr noundef nonnull %0)
  store float 0.000000e+00, ptr %16, align 4, !tbaa !19
  %87 = tail call <2 x float> @vrVect(float noundef 0.000000e+00, float noundef 0.000000e+00) #3
  store <2 x float> %87, ptr %4, align 8
  ret void

.lr.ph76:                                         ; preds = %.preheader, %.lr.ph76
  %indvars.iv87 = phi i64 [ %indvars.iv.next88, %.lr.ph76 ], [ 0, %.preheader ]
  %88 = phi ptr [ %99, %.lr.ph76 ], [ %82, %.preheader ]
  %89 = load ptr, ptr %88, align 8, !tbaa !22
  %90 = getelementptr inbounds ptr, ptr %89, i64 %indvars.iv87
  %91 = load ptr, ptr %90, align 8, !tbaa !23
  %92 = getelementptr inbounds i8, ptr %91, i64 48
  %93 = getelementptr inbounds i8, ptr %91, i64 40
  %94 = load ptr, ptr %93, align 8, !tbaa !33
  %95 = load ptr, ptr %91, align 8, !tbaa !26
  %96 = tail call { <2 x float>, <2 x float> } %94(ptr noundef %95) #3
  %97 = extractvalue { <2 x float>, <2 x float> } %96, 0
  %98 = extractvalue { <2 x float>, <2 x float> } %96, 1
  store <2 x float> %97, ptr %92, align 8
  %.sroa.4.0..sroa_idx = getelementptr inbounds i8, ptr %91, i64 56
  store <2 x float> %98, ptr %.sroa.4.0..sroa_idx, align 8
  %indvars.iv.next88 = add nuw nsw i64 %indvars.iv87, 1
  %99 = load ptr, ptr %11, align 8, !tbaa !5
  %100 = getelementptr inbounds i8, ptr %99, i64 8
  %101 = load i32, ptr %100, align 8, !tbaa !17
  %102 = sext i32 %101 to i64
  %103 = icmp slt i64 %indvars.iv.next88, %102
  br i1 %103, label %.lr.ph76, label %._crit_edge77, !llvm.loop !34
}

; Function Attrs: nounwind uwtable
declare dso_local void @vrBodyUpdateOBB(ptr noundef) local_unnamed_addr #2

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 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #2 = { 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 = { 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 44}
!20 = !{!6, !8, i64 36}
!21 = !{!6, !8, i64 32}
!22 = !{!18, !14, i64 0}
!23 = !{!14, !14, i64 0}
!24 = !{!25, !14, i64 16}
!25 = !{!"vrShape", !14, i64 0, !12, i64 8, !14, i64 16, !14, i64 24, !14, i64 32, !14, i64 40, !16, i64 48}
!26 = !{!25, !14, i64 0}
!27 = distinct !{!27, !28}
!28 = !{!"llvm.loop.mustprogress"}
!29 = !{!25, !14, i64 32}
!30 = distinct !{!30, !28}
!31 = !{!25, !14, i64 24}
!32 = distinct !{!32, !28}
!33 = !{!25, !14, i64 40}
!34 = distinct !{!34, !28}


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