; LLVM IR from mtsamis/box2d-optimized :: src/dynamics/b2_mouse_joint.ll (ZN12b2MouseJoint23InitVelocityConstraintsERK12b2SolverData)

; 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.b2Vec2 = type { float, float }
%struct.b2Rot = type { float, float }
%struct.b2Mat22 = type { %struct.b2Vec2, %struct.b2Vec2 }
%class.b2Joint = type { ptr, i32, ptr, ptr, %struct.b2JointEdge, %struct.b2JointEdge, ptr, ptr, i32, i8, i8, %struct.b2JointUserData }
%struct.b2JointEdge = type { ptr, ptr, ptr, ptr }
%struct.b2JointUserData = type { i64 }
%class.b2Body = type { i32, i16, i32, %struct.b2Transform, %struct.b2Transform, %struct.b2Sweep, %struct.b2Vec2, float, %struct.b2Vec2, float, ptr, ptr, ptr, ptr, i32, ptr, ptr, i32, i32, float, float, float, float, float, float, float, float, %struct.b2BodyUserData }
%struct.b2Transform = type { %struct.b2Vec2, %struct.b2Rot }
%struct.b2Sweep = type { %struct.b2Vec2, %struct.b2Vec2, %struct.b2Vec2, float, float, float }
%struct.b2BodyUserData = type { i64 }
%class.b2MouseJoint = type <{ %class.b2Joint, %struct.b2Vec2, %struct.b2Vec2, float, float, float, %struct.b2Vec2, float, float, i32, i32, %struct.b2Vec2, %struct.b2Vec2, float, float, %struct.b2Mat22, %struct.b2Vec2, [4 x i8] }>
%struct.b2SolverData = type { %struct.b2TimeStep, ptr, ptr }
%struct.b2TimeStep = type { float, float, float, i32, i32, i32, i8 }
%struct.b2Position = type { %struct.b2Vec2, float }
%struct.b2Velocity = type { %struct.b2Vec2, float }

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN6b2Vec27SetZeroEv(ptr noundef nonnull align 4 dereferenceable(8)) #3 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN12b2MouseJoint23InitVelocityConstraintsERK12b2SolverData(ptr noundef nonnull align 8 dereferenceable(228) %0, ptr noundef nonnull align 8 dereferenceable(48) %1) unnamed_addr #4 align 2 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca %struct.b2Vec2, align 4
  %6 = alloca float, align 4
  %7 = alloca %struct.b2Vec2, align 4
  %8 = alloca float, align 4
  %9 = alloca %struct.b2Rot, align 4
  %10 = alloca float, align 4
  %11 = alloca float, align 4
  %12 = alloca float, align 4
  %13 = alloca float, align 4
  %14 = alloca %struct.b2Vec2, align 4
  %15 = alloca %struct.b2Vec2, align 4
  %16 = alloca %struct.b2Mat22, align 4
  %17 = alloca %struct.b2Mat22, align 4
  %18 = alloca %struct.b2Vec2, align 4
  %19 = alloca %struct.b2Vec2, align 4
  %20 = alloca %struct.b2Vec2, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %21 = load ptr, ptr %3, align 8
  %22 = getelementptr inbounds %class.b2Joint, ptr %21, i32 0, i32 7
  %23 = load ptr, ptr %22, align 8, !tbaa !9
  %24 = getelementptr inbounds %class.b2Body, ptr %23, i32 0, i32 2
  %25 = load i32, ptr %24, align 8, !tbaa !17
  %26 = getelementptr inbounds %class.b2MouseJoint, ptr %21, i32 0, i32 10
  store i32 %25, ptr %26, align 8, !tbaa !27
  %27 = getelementptr inbounds %class.b2Joint, ptr %21, i32 0, i32 7
  %28 = load ptr, ptr %27, align 8, !tbaa !9
  %29 = getelementptr inbounds %class.b2Body, ptr %28, i32 0, i32 5
  %30 = getelementptr inbounds %struct.b2Sweep, ptr %29, i32 0, i32 0
  %31 = getelementptr inbounds %class.b2MouseJoint, ptr %21, i32 0, i32 12
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %31, ptr align 4 %30, i64 8, i1 false), !tbaa.struct !30
  %32 = getelementptr inbounds %class.b2Joint, ptr %21, i32 0, i32 7
  %33 = load ptr, ptr %32, align 8, !tbaa !9
  %34 = getelementptr inbounds %class.b2Body, ptr %33, i32 0, i32 20
  %35 = load float, ptr %34, align 4, !tbaa !32
  %36 = getelementptr inbounds %class.b2MouseJoint, ptr %21, i32 0, i32 13
  store float %35, ptr %36, align 4, !tbaa !33
  %37 = getelementptr inbounds %class.b2Joint, ptr %21, i32 0, i32 7
  %38 = load ptr, ptr %37, align 8, !tbaa !9
  %39 = getelementptr inbounds %class.b2Body, ptr %38, i32 0, i32 22
  %40 = load float, ptr %39, align 4, !tbaa !34
  %41 = getelementptr inbounds %class.b2MouseJoint, ptr %21, i32 0, i32 14
  store float %40, ptr %41, align 8, !tbaa !35
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #8
  %42 = load ptr, ptr %4, align 8, !tbaa !5
  %43 = getelementptr inbounds %struct.b2SolverData, ptr %42, i32 0, i32 1
  %44 = load ptr, ptr %43, align 8, !tbaa !36
  %45 = getelementptr inbounds %class.b2MouseJoint, ptr %21, i32 0, i32 10
  %46 = load i32, ptr %45, align 8, !tbaa !27
  %47 = sext i32 %46 to i64
  %48 = getelementptr inbounds %struct.b2Position, ptr %44, i64 %47
  %49 = getelementptr inbounds %struct.b2Position, ptr %48, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %5, ptr align 4 %49, i64 8, i1 false), !tbaa.struct !30
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #8
  %50 = load ptr, ptr %4, align 8, !tbaa !5
  %51 = getelementptr inbounds %struct.b2SolverData, ptr %50, i32 0, i32 1
  %52 = load ptr, ptr %51, align 8, !tbaa !36
  %53 = getelementptr inbounds %class.b2MouseJoint, ptr %21, i32 0, i32 10
  %54 = load i32, ptr %53, align 8, !tbaa !27
  %55 = sext i32 %54 to i64
  %56 = getelementptr inbounds %struct.b2Position, ptr %52, i64 %55
  %57 = getelementptr inbounds %struct.b2Position, ptr %56, i32 0, i32 1
  %58 = load float, ptr %57, align 4, !tbaa !39
  store float %58, ptr %6, align 4, !tbaa !31
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #8
  %59 = load ptr, ptr %4, align 8, !tbaa !5
  %60 = getelementptr inbounds %struct.b2SolverData, ptr %59, i32 0, i32 2
  %61 = load ptr, ptr %60, align 8, !tbaa !41
  %62 = getelementptr inbounds %class.b2MouseJoint, ptr %21, i32 0, i32 10
  %63 = load i32, ptr %62, align 8, !tbaa !27
  %64 = sext i32 %63 to i64
  %65 = getelementptr inbounds %struct.b2Velocity, ptr %61, i64 %64
  %66 = getelementptr inbounds %struct.b2Velocity, ptr %65, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %7, ptr align 4 %66, i64 8, i1 false), !tbaa.struct !30
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #8
  %67 = load ptr, ptr %4, align 8, !tbaa !5
  %68 = getelementptr inbounds %struct.b2SolverData, ptr %67, i32 0, i32 2
  %69 = load ptr, ptr %68, align 8, !tbaa !41
  %70 = getelementptr inbounds %class.b2MouseJoint, ptr %21, i32 0, i32 10
  %71 = load i32, ptr %70, align 8, !tbaa !27
  %72 = sext i32 %71 to i64
  %73 = getelementptr inbounds %struct.b2Velocity, ptr %69, i64 %72
  %74 = getelementptr inbounds %struct.b2Velocity, ptr %73, i32 0, i32 1
  %75 = load float, ptr %74, align 4, !tbaa !42
  store float %75, ptr %8, align 4, !tbaa !31
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #8
  %76 = load float, ptr %6, align 4, !tbaa !31
  call void @_ZN5b2RotC2Ef(ptr noundef nonnull align 4 dereferenceable(8) %9, float noundef %76)
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #8
  %77 = getelementptr inbounds %class.b2Joint, ptr %21, i32 0, i32 7
  %78 = load ptr, ptr %77, align 8, !tbaa !9
  %79 = call noundef float @_ZNK6b2Body7GetMassEv(ptr noundef nonnull align 8 dereferenceable(208) %78)
  store float %79, ptr %10, align 4, !tbaa !31
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #8
  %80 = getelementptr inbounds %class.b2MouseJoint, ptr %21, i32 0, i32 4
  %81 = load float, ptr %80, align 4, !tbaa !44
  store float %81, ptr %11, align 4, !tbaa !31
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #8
  %82 = getelementptr inbounds %class.b2MouseJoint, ptr %21, i32 0, i32 3
  %83 = load float, ptr %82, align 8, !tbaa !45
  store float %83, ptr %12, align 4, !tbaa !31
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #8
  %84 = load ptr, ptr %4, align 8, !tbaa !5
  %85 = getelementptr inbounds %struct.b2SolverData, ptr %84, i32 0, i32 0
  %86 = getelementptr inbounds %struct.b2TimeStep, ptr %85, i32 0, i32 0
  %87 = load float, ptr %86, align 8, !tbaa !46
  store float %87, ptr %13, align 4, !tbaa !31
  %88 = load float, ptr %13, align 4, !tbaa !31
  %89 = load float, ptr %11, align 4, !tbaa !31
  %90 = load float, ptr %13, align 4, !tbaa !31
  %91 = load float, ptr %12, align 4, !tbaa !31
  %92 = call float @llvm.fmuladd.f32(float %90, float %91, float %89)
  %93 = fmul float %88, %92
  %94 = getelementptr inbounds %class.b2MouseJoint, ptr %21, i32 0, i32 8
  store float %93, ptr %94, align 8, !tbaa !47
  %95 = getelementptr inbounds %class.b2MouseJoint, ptr %21, i32 0, i32 8
  %96 = load float, ptr %95, align 8, !tbaa !47
  %97 = fcmp une float %96, 0.000000e+00
  br i1 %97, label %98, label %103

98:                                               ; preds = %2
  %99 = getelementptr inbounds %class.b2MouseJoint, ptr %21, i32 0, i32 8
  %100 = load float, ptr %99, align 8, !tbaa !47
  %101 = fdiv float 1.000000e+00, %100
  %102 = getelementptr inbounds %class.b2MouseJoint, ptr %21, i32 0, i32 8
  store float %101, ptr %102, align 8, !tbaa !47
  br label %103

103:                                              ; preds = %98, %2
  %104 = load float, ptr %13, align 4, !tbaa !31
  %105 = load float, ptr %12, align 4, !tbaa !31
  %106 = fmul float %104, %105
  %107 = getelementptr inbounds %class.b2MouseJoint, ptr %21, i32 0, i32 8
  %108 = load float, ptr %107, align 8, !tbaa !47
  %109 = fmul float %106, %108
  %110 = getelementptr inbounds %class.b2MouseJoint, ptr %21, i32 0, i32 5
  store float %109, ptr %110, align 8, !tbaa !48
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #8
  %111 = getelementptr inbounds %class.b2MouseJoint, ptr %21, i32 0, i32 1
  %112 = getelementptr inbounds %class.b2MouseJoint, ptr %21, i32 0, i32 12
  %113 = call <2 x float> @_ZmiRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %111, ptr noundef nonnull align 4 dereferenceable(8) %112)
  store <2 x float> %113, ptr %15, align 4
  %114 = call <2 x float> @_Z5b2MulRK5b2RotRK6b2Vec2(ptr noundef nonnull align 4 dereferenceable(8) %9, ptr noundef nonnull align 4 dereferenceable(8) %15)
  store <2 x float> %114, ptr %14, align 4
  %115 = getelementptr inbounds %class.b2MouseJoint, ptr %21, i32 0, i32 11
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %115, ptr align 4 %14, i64 8, i1 false), !tbaa.struct !30
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr %16) #8
  call void @_ZN7b2Mat22C2Ev(ptr noundef nonnull align 4 dereferenceable(16) %16)
  %116 = getelementptr inbounds %class.b2MouseJoint, ptr %21, i32 0, i32 13
  %117 = load float, ptr %116, align 4, !tbaa !33
  %118 = getelementptr inbounds %class.b2MouseJoint, ptr %21, i32 0, i32 14
  %119 = load float, ptr %118, align 8, !tbaa !35
  %120 = getelementptr inbounds %class.b2MouseJoint, ptr %21, i32 0, i32 11
  %121 = getelementptr inbounds %struct.b2Vec2, ptr %120, i32 0, i32 1
  %122 = load float, ptr %121, align 4, !tbaa !49
  %123 = fmul float %119, %122
  %124 = getelementptr inbounds %class.b2MouseJoint, ptr %21, i32 0, i32 11
  %125 = getelementptr inbounds %struct.b2Vec2, ptr %124, i32 0, i32 1
  %126 = load float, ptr %125, align 4, !tbaa !49
  %127 = call float @llvm.fmuladd.f32(float %123, float %126, float %117)
  %128 = getelementptr inbounds %class.b2MouseJoint, ptr %21, i32 0, i32 8
  %129 = load float, ptr %128, align 8, !tbaa !47
  %130 = fadd float %127, %129
  %131 = getelementptr inbounds %struct.b2Mat22, ptr %16, i32 0, i32 0
  %132 = getelementptr inbounds %struct.b2Vec2, ptr %131, i32 0, i32 0
  store float %130, ptr %132, align 4, !tbaa !50
  %133 = getelementptr inbounds %class.b2MouseJoint, ptr %21, i32 0, i32 14
  %134 = load float, ptr %133, align 8, !tbaa !35
  %135 = fneg float %134
  %136 = getelementptr inbounds %class.b2MouseJoint, ptr %21, i32 0, i32 11
  %137 = getelementptr inbounds %struct.b2Vec2, ptr %136, i32 0, i32 0
  %138 = load float, ptr %137, align 4, !tbaa !51
  %139 = fmul float %135, %138
  %140 = getelementptr inbounds %class.b2MouseJoint, ptr %21, i32 0, i32 11
  %141 = getelementptr inbounds %struct.b2Vec2, ptr %140, i32 0, i32 1
  %142 = load float, ptr %141, align 4, !tbaa !49
  %143 = fmul float %139, %142
  %144 = getelementptr inbounds %struct.b2Mat22, ptr %16, i32 0, i32 0
  %145 = getelementptr inbounds %struct.b2Vec2, ptr %144, i32 0, i32 1
  store float %143, ptr %145, align 4, !tbaa !52
  %146 = getelementptr inbounds %struct.b2Mat22, ptr %16, i32 0, i32 0
  %147 = getelementptr inbounds %struct.b2Vec2, ptr %146, i32 0, i32 1
  %148 = load float, ptr %147, align 4, !tbaa !52
  %149 = getelementptr inbounds %struct.b2Mat22, ptr %16, i32 0, i32 1
  %150 = getelementptr inbounds %struct.b2Vec2, ptr %149, i32 0, i32 0
  store float %148, ptr %150, align 4, !tbaa !53
  %151 = getelementptr inbounds %class.b2MouseJoint, ptr %21, i32 0, i32 13
  %152 = load float, ptr %151, align 4, !tbaa !33
  %153 = getelementptr inbounds %class.b2MouseJoint, ptr %21, i32 0, i32 14
  %154 = load float, ptr %153, align 8, !tbaa !35
  %155 = getelementptr inbounds %class.b2MouseJoint, ptr %21, i32 0, i32 11
  %156 = getelementptr inbounds %struct.b2Vec2, ptr %155, i32 0, i32 0
  %157 = load float, ptr %156, align 4, !tbaa !51
  %158 = fmul float %154, %157
  %159 = getelementptr inbounds %class.b2MouseJoint, ptr %21, i32 0, i32 11
  %160 = getelementptr inbounds %struct.b2Vec2, ptr %159, i32 0, i32 0
  %161 = load float, ptr %160, align 4, !tbaa !51
  %162 = call float @llvm.fmuladd.f32(float %158, float %161, float %152)
  %163 = getelementptr inbounds %class.b2MouseJoint, ptr %21, i32 0, i32 8
  %164 = load float, ptr %163, align 8, !tbaa !47
  %165 = fadd float %162, %164
  %166 = getelementptr inbounds %struct.b2Mat22, ptr %16, i32 0, i32 1
  %167 = getelementptr inbounds %struct.b2Vec2, ptr %166, i32 0, i32 1
  store float %165, ptr %167, align 4, !tbaa !54
  call void @llvm.lifetime.start.p0(i64 16, ptr %17) #8
  %168 = call { <2 x float>, <2 x float> } @_ZNK7b2Mat2210GetInverseEv(ptr noundef nonnull align 4 dereferenceable(16) %16)
  %169 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %17, i32 0, i32 0
  %170 = extractvalue { <2 x float>, <2 x float> } %168, 0
  store <2 x float> %170, ptr %169, align 4
  %171 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %17, i32 0, i32 1
  %172 = extractvalue { <2 x float>, <2 x float> } %168, 1
  store <2 x float> %172, ptr %171, align 4
  %173 = getelementptr inbounds %class.b2MouseJoint, ptr %21, i32 0, i32 15
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %173, ptr align 4 %17, i64 16, i1 false), !tbaa.struct !55
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #8
  %174 = getelementptr inbounds %class.b2MouseJoint, ptr %21, i32 0, i32 11
  %175 = call <2 x float> @_ZplRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %5, ptr noundef nonnull align 4 dereferenceable(8) %174)
  store <2 x float> %175, ptr %19, align 4
  %176 = getelementptr inbounds %class.b2MouseJoint, ptr %21, i32 0, i32 2
  %177 = call <2 x float> @_ZmiRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %19, ptr noundef nonnull align 4 dereferenceable(8) %176)
  store <2 x float> %177, ptr %18, align 4
  %178 = getelementptr inbounds %class.b2MouseJoint, ptr %21, i32 0, i32 16
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %178, ptr align 4 %18, i64 8, i1 false), !tbaa.struct !30
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #8
  %179 = getelementptr inbounds %class.b2MouseJoint, ptr %21, i32 0, i32 5
  %180 = load float, ptr %179, align 8, !tbaa !48
  %181 = getelementptr inbounds %class.b2MouseJoint, ptr %21, i32 0, i32 16
  call void @_ZN6b2Vec2mLEf(ptr noundef nonnull align 4 dereferenceable(8) %181, float noundef %180)
  %182 = load float, ptr %8, align 4, !tbaa !31
  %183 = fmul float %182, 0x3FEF5C2900000000
  store float %183, ptr %8, align 4, !tbaa !31
  %184 = load ptr, ptr %4, align 8, !tbaa !5
  %185 = getelementptr inbounds %struct.b2SolverData, ptr %184, i32 0, i32 0
  %186 = getelementptr inbounds %struct.b2TimeStep, ptr %185, i32 0, i32 6
  %187 = load i8, ptr %186, align 8, !tbaa !56, !range !57, !noundef !58
  %188 = trunc i8 %187 to i1
  br i1 %188, label %189, label %206

189:                                              ; preds = %103
  %190 = load ptr, ptr %4, align 8, !tbaa !5
  %191 = getelementptr inbounds %struct.b2SolverData, ptr %190, i32 0, i32 0
  %192 = getelementptr inbounds %struct.b2TimeStep, ptr %191, i32 0, i32 2
  %193 = load float, ptr %192, align 8, !tbaa !59
  %194 = getelementptr inbounds %class.b2MouseJoint, ptr %21, i32 0, i32 6
  call void @_ZN6b2Vec2mLEf(ptr noundef nonnull align 4 dereferenceable(8) %194, float noundef %193)
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #8
  %195 = getelementptr inbounds %class.b2MouseJoint, ptr %21, i32 0, i32 13
  %196 = load float, ptr %195, align 4, !tbaa !33
  %197 = getelementptr inbounds %class.b2MouseJoint, ptr %21, i32 0, i32 6
  %198 = call <2 x float> @_ZmlfRK6b2Vec2(float noundef %196, ptr noundef nonnull align 4 dereferenceable(8) %197)
  store <2 x float> %198, ptr %20, align 4
  call void @_ZN6b2Vec2pLERKS_(ptr noundef nonnull align 4 dereferenceable(8) %7, ptr noundef nonnull align 4 dereferenceable(8) %20)
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #8
  %199 = getelementptr inbounds %class.b2MouseJoint, ptr %21, i32 0, i32 14
  %200 = load float, ptr %199, align 8, !tbaa !35
  %201 = getelementptr inbounds %class.b2MouseJoint, ptr %21, i32 0, i32 11
  %202 = getelementptr inbounds %class.b2MouseJoint, ptr %21, i32 0, i32 6
  %203 = call noundef float @_Z7b2CrossRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %201, ptr noundef nonnull align 4 dereferenceable(8) %202)
  %204 = load float, ptr %8, align 4, !tbaa !31
  %205 = call float @llvm.fmuladd.f32(float %200, float %203, float %204)
  store float %205, ptr %8, align 4, !tbaa !31
  br label %208

206:                                              ; preds = %103
  %207 = getelementptr inbounds %class.b2MouseJoint, ptr %21, i32 0, i32 6
  call void @_ZN6b2Vec27SetZeroEv(ptr noundef nonnull align 4 dereferenceable(8) %207)
  br label %208

208:                                              ; preds = %206, %189
  %209 = load ptr, ptr %4, align 8, !tbaa !5
  %210 = getelementptr inbounds %struct.b2SolverData, ptr %209, i32 0, i32 2
  %211 = load ptr, ptr %210, align 8, !tbaa !41
  %212 = getelementptr inbounds %class.b2MouseJoint, ptr %21, i32 0, i32 10
  %213 = load i32, ptr %212, align 8, !tbaa !27
  %214 = sext i32 %213 to i64
  %215 = getelementptr inbounds %struct.b2Velocity, ptr %211, i64 %214
  %216 = getelementptr inbounds %struct.b2Velocity, ptr %215, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %216, ptr align 4 %7, i64 8, i1 false), !tbaa.struct !30
  %217 = load float, ptr %8, align 4, !tbaa !31
  %218 = load ptr, ptr %4, align 8, !tbaa !5
  %219 = getelementptr inbounds %struct.b2SolverData, ptr %218, i32 0, i32 2
  %220 = load ptr, ptr %219, align 8, !tbaa !41
  %221 = getelementptr inbounds %class.b2MouseJoint, ptr %21, i32 0, i32 10
  %222 = load i32, ptr %221, align 8, !tbaa !27
  %223 = sext i32 %222 to i64
  %224 = getelementptr inbounds %struct.b2Velocity, ptr %220, i64 %223
  %225 = getelementptr inbounds %struct.b2Velocity, ptr %224, i32 0, i32 1
  store float %217, ptr %225, align 4, !tbaa !42
  call void @llvm.lifetime.end.p0(i64 16, ptr %16) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #8
  ret void
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN5b2RotC2Ef(ptr noundef nonnull align 4 dereferenceable(8), float noundef) unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZNK6b2Body7GetMassEv(ptr noundef nonnull align 8 dereferenceable(208)) #5 align 2

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local { <2 x float>, <2 x float> } @_ZNK7b2Mat2210GetInverseEv(ptr noundef nonnull align 4 dereferenceable(16)) #0 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN6b2Vec2mLEf(ptr noundef nonnull align 4 dereferenceable(8), float noundef) #3 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN6b2Vec2pLERKS_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_Z7b2CrossRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) #5

attributes #0 = { 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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 #4 = { mustprogress uwtable "min-legal-vector-width"="64" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #7 = { inlinehint mustprogress uwtable "min-legal-vector-width"="64" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #8 = { 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, !6, i64 104}
!10 = !{!"_ZTS7b2Joint", !11, i64 8, !6, i64 16, !6, i64 24, !12, i64 32, !12, i64 64, !6, i64 96, !6, i64 104, !13, i64 112, !14, i64 116, !14, i64 117, !15, i64 120}
!11 = !{!"_ZTS11b2JointType", !7, i64 0}
!12 = !{!"_ZTS11b2JointEdge", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!13 = !{!"int", !7, i64 0}
!14 = !{!"bool", !7, i64 0}
!15 = !{!"_ZTS15b2JointUserData", !16, i64 0}
!16 = !{!"long", !7, i64 0}
!17 = !{!18, !13, i64 8}
!18 = !{!"_ZTS6b2Body", !19, i64 0, !20, i64 4, !13, i64 8, !21, i64 12, !21, i64 28, !25, i64 44, !22, i64 80, !23, i64 88, !22, i64 92, !23, i64 100, !6, i64 104, !6, i64 112, !6, i64 120, !6, i64 128, !13, i64 136, !6, i64 144, !6, i64 152, !13, i64 160, !13, i64 164, !23, i64 168, !23, i64 172, !23, i64 176, !23, i64 180, !23, i64 184, !23, i64 188, !23, i64 192, !23, i64 196, !26, i64 200}
!19 = !{!"_ZTS10b2BodyType", !7, i64 0}
!20 = !{!"short", !7, i64 0}
!21 = !{!"_ZTS11b2Transform", !22, i64 0, !24, i64 8}
!22 = !{!"_ZTS6b2Vec2", !23, i64 0, !23, i64 4}
!23 = !{!"float", !7, i64 0}
!24 = !{!"_ZTS5b2Rot", !23, i64 0, !23, i64 4}
!25 = !{!"_ZTS7b2Sweep", !22, i64 0, !22, i64 8, !22, i64 16, !23, i64 24, !23, i64 28, !23, i64 32}
!26 = !{!"_ZTS14b2BodyUserData", !16, i64 0}
!27 = !{!28, !13, i64 176}
!28 = !{!"_ZTS12b2MouseJoint", !10, i64 0, !22, i64 128, !22, i64 136, !23, i64 144, !23, i64 148, !23, i64 152, !22, i64 156, !23, i64 164, !23, i64 168, !13, i64 172, !13, i64 176, !22, i64 180, !22, i64 188, !23, i64 196, !23, i64 200, !29, i64 204, !22, i64 220}
!29 = !{!"_ZTS7b2Mat22", !22, i64 0, !22, i64 8}
!30 = !{i64 0, i64 4, !31, i64 4, i64 4, !31}
!31 = !{!23, !23, i64 0}
!32 = !{!18, !23, i64 172}
!33 = !{!28, !23, i64 196}
!34 = !{!18, !23, i64 180}
!35 = !{!28, !23, i64 200}
!36 = !{!37, !6, i64 32}
!37 = !{!"_ZTS12b2SolverData", !38, i64 0, !6, i64 32, !6, i64 40}
!38 = !{!"_ZTS10b2TimeStep", !23, i64 0, !23, i64 4, !23, i64 8, !13, i64 12, !13, i64 16, !13, i64 20, !14, i64 24}
!39 = !{!40, !23, i64 8}
!40 = !{!"_ZTS10b2Position", !22, i64 0, !23, i64 8}
!41 = !{!37, !6, i64 40}
!42 = !{!43, !23, i64 8}
!43 = !{!"_ZTS10b2Velocity", !22, i64 0, !23, i64 8}
!44 = !{!28, !23, i64 148}
!45 = !{!28, !23, i64 144}
!46 = !{!37, !23, i64 0}
!47 = !{!28, !23, i64 168}
!48 = !{!28, !23, i64 152}
!49 = !{!28, !23, i64 184}
!50 = !{!29, !23, i64 0}
!51 = !{!28, !23, i64 180}
!52 = !{!29, !23, i64 4}
!53 = !{!29, !23, i64 8}
!54 = !{!29, !23, i64 12}
!55 = !{i64 0, i64 4, !31, i64 4, i64 4, !31, i64 8, i64 4, !31, i64 12, i64 4, !31}
!56 = !{!37, !14, i64 24}
!57 = !{i8 0, i8 2}
!58 = !{}
!59 = !{!37, !23, i64 8}


; 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.b2Vec2 = type { float, float }
%struct.b2Rot = type { float, float }
%struct.b2Mat22 = type { %struct.b2Vec2, %struct.b2Vec2 }
%struct.b2Position = type { %struct.b2Vec2, float }
%struct.b2Velocity = type { %struct.b2Vec2, float }

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN6b2Vec27SetZeroEv(ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN12b2MouseJoint23InitVelocityConstraintsERK12b2SolverData(ptr noundef nonnull align 8 dereferenceable(228) %0, ptr nocapture noundef nonnull readonly align 8 dereferenceable(48) %1) unnamed_addr #3 align 2 {
  %3 = alloca %struct.b2Vec2, align 8
  %4 = alloca %struct.b2Vec2, align 8
  %5 = alloca %struct.b2Rot, align 4
  %6 = alloca %struct.b2Vec2, align 8
  %7 = alloca %struct.b2Mat22, align 4
  %8 = alloca %struct.b2Vec2, align 8
  %9 = alloca %struct.b2Vec2, align 8
  %10 = getelementptr inbounds i8, ptr %0, i64 104
  %11 = load ptr, ptr %10, align 8, !tbaa !5
  %12 = getelementptr inbounds i8, ptr %11, i64 8
  %13 = load i32, ptr %12, align 8, !tbaa !16
  %14 = getelementptr inbounds i8, ptr %0, i64 176
  store i32 %13, ptr %14, align 8, !tbaa !26
  %15 = getelementptr inbounds i8, ptr %11, i64 44
  %16 = getelementptr inbounds i8, ptr %0, i64 188
  %17 = load i64, ptr %15, align 4
  store i64 %17, ptr %16, align 4
  %18 = getelementptr inbounds i8, ptr %11, i64 172
  %19 = load float, ptr %18, align 4, !tbaa !29
  %20 = getelementptr inbounds i8, ptr %0, i64 196
  store float %19, ptr %20, align 4, !tbaa !30
  %21 = getelementptr inbounds i8, ptr %11, i64 180
  %22 = load float, ptr %21, align 4, !tbaa !31
  %23 = getelementptr inbounds i8, ptr %0, i64 200
  store float %22, ptr %23, align 8, !tbaa !32
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #7
  %24 = getelementptr inbounds i8, ptr %1, i64 32
  %25 = load ptr, ptr %24, align 8, !tbaa !33
  %26 = sext i32 %13 to i64
  %27 = getelementptr inbounds %struct.b2Position, ptr %25, i64 %26
  %28 = load i64, ptr %27, align 4
  store i64 %28, ptr %3, align 8
  %29 = getelementptr inbounds %struct.b2Position, ptr %25, i64 %26, i32 1
  %30 = load float, ptr %29, align 4, !tbaa !36
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #7
  %31 = getelementptr inbounds i8, ptr %1, i64 40
  %32 = load ptr, ptr %31, align 8, !tbaa !38
  %33 = getelementptr inbounds %struct.b2Velocity, ptr %32, i64 %26
  %34 = load i64, ptr %33, align 4
  store i64 %34, ptr %4, align 8
  %35 = getelementptr inbounds %struct.b2Velocity, ptr %32, i64 %26, i32 1
  %36 = load float, ptr %35, align 4, !tbaa !39
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #7
  call void @_ZN5b2RotC2Ef(ptr noundef nonnull align 4 dereferenceable(8) %5, float noundef %30)
  %37 = load ptr, ptr %10, align 8, !tbaa !5
  %38 = call noundef float @_ZNK6b2Body7GetMassEv(ptr noundef nonnull align 8 dereferenceable(208) %37)
  %39 = getelementptr inbounds i8, ptr %0, i64 148
  %40 = load float, ptr %39, align 4, !tbaa !41
  %41 = getelementptr inbounds i8, ptr %0, i64 144
  %42 = load float, ptr %41, align 8, !tbaa !42
  %43 = load float, ptr %1, align 8, !tbaa !43
  %44 = call float @llvm.fmuladd.f32(float %43, float %42, float %40)
  %45 = fmul float %43, %44
  %46 = getelementptr inbounds i8, ptr %0, i64 168
  %47 = fcmp une float %45, 0.000000e+00
  %48 = fdiv float 1.000000e+00, %45
  %storemerge = select i1 %47, float %48, float %45
  store float %storemerge, ptr %46, align 8, !tbaa !44
  %49 = fmul float %42, %43
  %50 = fmul float %49, %storemerge
  %51 = getelementptr inbounds i8, ptr %0, i64 152
  store float %50, ptr %51, align 8, !tbaa !45
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #7
  %52 = getelementptr inbounds i8, ptr %0, i64 128
  %53 = call <2 x float> @_ZmiRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %52, ptr noundef nonnull align 4 dereferenceable(8) %16)
  store <2 x float> %53, ptr %6, align 8
  %54 = call <2 x float> @_Z5b2MulRK5b2RotRK6b2Vec2(ptr noundef nonnull align 4 dereferenceable(8) %5, ptr noundef nonnull align 4 dereferenceable(8) %6)
  %55 = getelementptr inbounds i8, ptr %0, i64 180
  store <2 x float> %54, ptr %55, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #7
  call void @_ZN7b2Mat22C2Ev(ptr noundef nonnull align 4 dereferenceable(16) %7)
  %56 = load float, ptr %20, align 4, !tbaa !30
  %57 = load float, ptr %23, align 8, !tbaa !32
  %58 = getelementptr inbounds i8, ptr %0, i64 184
  %59 = load float, ptr %58, align 8, !tbaa !46
  %60 = fmul float %57, %59
  %61 = call float @llvm.fmuladd.f32(float %60, float %59, float %56)
  %62 = load float, ptr %46, align 8, !tbaa !44
  %63 = fadd float %62, %61
  store float %63, ptr %7, align 4, !tbaa !47
  %64 = fneg float %57
  %65 = load float, ptr %55, align 4, !tbaa !48
  %66 = fmul float %65, %64
  %67 = fmul float %59, %66
  %68 = getelementptr inbounds i8, ptr %7, i64 4
  store float %67, ptr %68, align 4, !tbaa !49
  %69 = getelementptr inbounds i8, ptr %7, i64 8
  store float %67, ptr %69, align 4, !tbaa !50
  %70 = fmul float %57, %65
  %71 = call float @llvm.fmuladd.f32(float %70, float %65, float %56)
  %72 = fadd float %62, %71
  %73 = getelementptr inbounds i8, ptr %7, i64 12
  store float %72, ptr %73, align 4, !tbaa !51
  %74 = call { <2 x float>, <2 x float> } @_ZNK7b2Mat2210GetInverseEv(ptr noundef nonnull align 4 dereferenceable(16) %7)
  %75 = extractvalue { <2 x float>, <2 x float> } %74, 0
  %76 = extractvalue { <2 x float>, <2 x float> } %74, 1
  %77 = getelementptr inbounds i8, ptr %0, i64 204
  store <2 x float> %75, ptr %77, align 4
  %.sroa.4.0..sroa_idx = getelementptr inbounds i8, ptr %0, i64 212
  store <2 x float> %76, ptr %.sroa.4.0..sroa_idx, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #7
  %78 = call <2 x float> @_ZplRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %3, ptr noundef nonnull align 4 dereferenceable(8) %55)
  store <2 x float> %78, ptr %8, align 8
  %79 = getelementptr inbounds i8, ptr %0, i64 136
  %80 = call <2 x float> @_ZmiRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %8, ptr noundef nonnull align 4 dereferenceable(8) %79)
  %81 = getelementptr inbounds i8, ptr %0, i64 220
  store <2 x float> %80, ptr %81, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #7
  %82 = load float, ptr %51, align 8, !tbaa !45
  call void @_ZN6b2Vec2mLEf(ptr noundef nonnull align 4 dereferenceable(8) %81, float noundef %82)
  %83 = fmul float %36, 0x3FEF5C2900000000
  %84 = getelementptr inbounds i8, ptr %1, i64 24
  %85 = load i8, ptr %84, align 8, !tbaa !52, !range !53, !noundef !54
  %86 = trunc nuw i8 %85 to i1
  br i1 %86, label %87, label %96

87:                                               ; preds = %2
  %88 = getelementptr inbounds i8, ptr %1, i64 8
  %89 = load float, ptr %88, align 8, !tbaa !55
  %90 = getelementptr inbounds i8, ptr %0, i64 156
  call void @_ZN6b2Vec2mLEf(ptr noundef nonnull align 4 dereferenceable(8) %90, float noundef %89)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #7
  %91 = load float, ptr %20, align 4, !tbaa !30
  %92 = call <2 x float> @_ZmlfRK6b2Vec2(float noundef %91, ptr noundef nonnull align 4 dereferenceable(8) %90)
  store <2 x float> %92, ptr %9, align 8
  call void @_ZN6b2Vec2pLERKS_(ptr noundef nonnull align 4 dereferenceable(8) %4, ptr noundef nonnull align 4 dereferenceable(8) %9)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #7
  %93 = load float, ptr %23, align 8, !tbaa !32
  %94 = call noundef float @_Z7b2CrossRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %55, ptr noundef nonnull align 4 dereferenceable(8) %90)
  %95 = call float @llvm.fmuladd.f32(float %93, float %94, float %83)
  %.pre = load i64, ptr %4, align 8
  br label %98

96:                                               ; preds = %2
  %97 = getelementptr inbounds i8, ptr %0, i64 156
  call void @_ZN6b2Vec27SetZeroEv(ptr noundef nonnull align 4 dereferenceable(8) %97)
  br label %98

98:                                               ; preds = %96, %87
  %99 = phi i64 [ %.pre, %87 ], [ %34, %96 ]
  %.0 = phi float [ %95, %87 ], [ %83, %96 ]
  %100 = load ptr, ptr %31, align 8, !tbaa !38
  %101 = load i32, ptr %14, align 8, !tbaa !26
  %102 = sext i32 %101 to i64
  %103 = getelementptr inbounds %struct.b2Velocity, ptr %100, i64 %102
  store i64 %99, ptr %103, align 4
  %104 = load ptr, ptr %31, align 8, !tbaa !38
  %105 = load i32, ptr %14, align 8, !tbaa !26
  %106 = sext i32 %105 to i64
  %107 = getelementptr inbounds %struct.b2Velocity, ptr %104, i64 %106, i32 1
  store float %.0, ptr %107, align 4, !tbaa !39
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #7
  ret void
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN5b2RotC2Ef(ptr noundef nonnull align 4 dereferenceable(8), float noundef) unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZNK6b2Body7GetMassEv(ptr noundef nonnull align 8 dereferenceable(208)) local_unnamed_addr #4 align 2

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local { <2 x float>, <2 x float> } @_ZNK7b2Mat2210GetInverseEv(ptr noundef nonnull align 4 dereferenceable(16)) local_unnamed_addr #0 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN6b2Vec2mLEf(ptr noundef nonnull align 4 dereferenceable(8), float noundef) local_unnamed_addr #2 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN6b2Vec2pLERKS_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #2 align 2

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

attributes #0 = { 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 nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { mustprogress uwtable "min-legal-vector-width"="64" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #6 = { inlinehint mustprogress uwtable "min-legal-vector-width"="64" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { 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, !10, i64 104}
!6 = !{!"_ZTS7b2Joint", !7, i64 8, !10, i64 16, !10, i64 24, !11, i64 32, !11, i64 64, !10, i64 96, !10, i64 104, !12, i64 112, !13, i64 116, !13, i64 117, !14, i64 120}
!7 = !{!"_ZTS11b2JointType", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!"_ZTS11b2JointEdge", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24}
!12 = !{!"int", !8, i64 0}
!13 = !{!"bool", !8, i64 0}
!14 = !{!"_ZTS15b2JointUserData", !15, i64 0}
!15 = !{!"long", !8, i64 0}
!16 = !{!17, !12, i64 8}
!17 = !{!"_ZTS6b2Body", !18, i64 0, !19, i64 4, !12, i64 8, !20, i64 12, !20, i64 28, !24, i64 44, !21, i64 80, !22, i64 88, !21, i64 92, !22, i64 100, !10, i64 104, !10, i64 112, !10, i64 120, !10, i64 128, !12, i64 136, !10, i64 144, !10, i64 152, !12, i64 160, !12, i64 164, !22, i64 168, !22, i64 172, !22, i64 176, !22, i64 180, !22, i64 184, !22, i64 188, !22, i64 192, !22, i64 196, !25, i64 200}
!18 = !{!"_ZTS10b2BodyType", !8, i64 0}
!19 = !{!"short", !8, i64 0}
!20 = !{!"_ZTS11b2Transform", !21, i64 0, !23, i64 8}
!21 = !{!"_ZTS6b2Vec2", !22, i64 0, !22, i64 4}
!22 = !{!"float", !8, i64 0}
!23 = !{!"_ZTS5b2Rot", !22, i64 0, !22, i64 4}
!24 = !{!"_ZTS7b2Sweep", !21, i64 0, !21, i64 8, !21, i64 16, !22, i64 24, !22, i64 28, !22, i64 32}
!25 = !{!"_ZTS14b2BodyUserData", !15, i64 0}
!26 = !{!27, !12, i64 176}
!27 = !{!"_ZTS12b2MouseJoint", !6, i64 0, !21, i64 128, !21, i64 136, !22, i64 144, !22, i64 148, !22, i64 152, !21, i64 156, !22, i64 164, !22, i64 168, !12, i64 172, !12, i64 176, !21, i64 180, !21, i64 188, !22, i64 196, !22, i64 200, !28, i64 204, !21, i64 220}
!28 = !{!"_ZTS7b2Mat22", !21, i64 0, !21, i64 8}
!29 = !{!17, !22, i64 172}
!30 = !{!27, !22, i64 196}
!31 = !{!17, !22, i64 180}
!32 = !{!27, !22, i64 200}
!33 = !{!34, !10, i64 32}
!34 = !{!"_ZTS12b2SolverData", !35, i64 0, !10, i64 32, !10, i64 40}
!35 = !{!"_ZTS10b2TimeStep", !22, i64 0, !22, i64 4, !22, i64 8, !12, i64 12, !12, i64 16, !12, i64 20, !13, i64 24}
!36 = !{!37, !22, i64 8}
!37 = !{!"_ZTS10b2Position", !21, i64 0, !22, i64 8}
!38 = !{!34, !10, i64 40}
!39 = !{!40, !22, i64 8}
!40 = !{!"_ZTS10b2Velocity", !21, i64 0, !22, i64 8}
!41 = !{!27, !22, i64 148}
!42 = !{!27, !22, i64 144}
!43 = !{!34, !22, i64 0}
!44 = !{!27, !22, i64 168}
!45 = !{!27, !22, i64 152}
!46 = !{!27, !22, i64 184}
!47 = !{!28, !22, i64 0}
!48 = !{!27, !22, i64 180}
!49 = !{!28, !22, i64 4}
!50 = !{!28, !22, i64 8}
!51 = !{!28, !22, i64 12}
!52 = !{!34, !13, i64 24}
!53 = !{i8 0, i8 2}
!54 = !{}
!55 = !{!34, !22, i64 8}


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