; LLVM IR from mtsamis/box2d-optimized :: src/dynamics (b2_distance_joint)

; 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 }
%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.b2DistanceJoint = type <{ %class.b2Joint, float, float, float, float, float, float, %struct.b2Vec2, %struct.b2Vec2, float, float, float, float, i32, i32, %struct.b2Vec2, %struct.b2Vec2, %struct.b2Vec2, %struct.b2Vec2, %struct.b2Vec2, float, float, float, float, float, float, float, [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: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0

; 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.end.p0(i64 immarg, ptr nocapture) #0

; 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)) #2

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN15b2DistanceJoint23InitVelocityConstraintsERK12b2SolverData(ptr noundef nonnull align 8 dereferenceable(260) %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.b2Vec2, align 4
  %10 = alloca float, align 4
  %11 = alloca %struct.b2Vec2, align 4
  %12 = alloca float, align 4
  %13 = alloca %struct.b2Rot, align 4
  %14 = alloca %struct.b2Rot, align 4
  %15 = alloca %struct.b2Vec2, align 4
  %16 = alloca %struct.b2Vec2, align 4
  %17 = alloca %struct.b2Vec2, align 4
  %18 = alloca %struct.b2Vec2, align 4
  %19 = alloca %struct.b2Vec2, align 4
  %20 = alloca %struct.b2Vec2, align 4
  %21 = alloca %struct.b2Vec2, align 4
  %22 = alloca float, align 4
  %23 = alloca float, align 4
  %24 = alloca float, align 4
  %25 = alloca float, align 4
  %26 = alloca float, align 4
  %27 = alloca float, align 4
  %28 = alloca float, align 4
  %29 = alloca %struct.b2Vec2, align 4
  %30 = alloca %struct.b2Vec2, align 4
  %31 = alloca %struct.b2Vec2, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %32 = load ptr, ptr %3, align 8
  %33 = getelementptr inbounds %class.b2Joint, ptr %32, i32 0, i32 6
  %34 = load ptr, ptr %33, align 8, !tbaa !9
  %35 = getelementptr inbounds %class.b2Body, ptr %34, i32 0, i32 2
  %36 = load i32, ptr %35, align 8, !tbaa !17
  %37 = getelementptr inbounds %class.b2DistanceJoint, ptr %32, i32 0, i32 13
  store i32 %36, ptr %37, align 8, !tbaa !27
  %38 = getelementptr inbounds %class.b2Joint, ptr %32, i32 0, i32 7
  %39 = load ptr, ptr %38, align 8, !tbaa !29
  %40 = getelementptr inbounds %class.b2Body, ptr %39, i32 0, i32 2
  %41 = load i32, ptr %40, align 8, !tbaa !17
  %42 = getelementptr inbounds %class.b2DistanceJoint, ptr %32, i32 0, i32 14
  store i32 %41, ptr %42, align 4, !tbaa !30
  %43 = getelementptr inbounds %class.b2Joint, ptr %32, i32 0, i32 6
  %44 = load ptr, ptr %43, align 8, !tbaa !9
  %45 = getelementptr inbounds %class.b2Body, ptr %44, i32 0, i32 5
  %46 = getelementptr inbounds %struct.b2Sweep, ptr %45, i32 0, i32 0
  %47 = getelementptr inbounds %class.b2DistanceJoint, ptr %32, i32 0, i32 18
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %47, ptr align 4 %46, i64 8, i1 false), !tbaa.struct !31
  %48 = getelementptr inbounds %class.b2Joint, ptr %32, i32 0, i32 7
  %49 = load ptr, ptr %48, align 8, !tbaa !29
  %50 = getelementptr inbounds %class.b2Body, ptr %49, i32 0, i32 5
  %51 = getelementptr inbounds %struct.b2Sweep, ptr %50, i32 0, i32 0
  %52 = getelementptr inbounds %class.b2DistanceJoint, ptr %32, i32 0, i32 19
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %52, ptr align 4 %51, i64 8, i1 false), !tbaa.struct !31
  %53 = getelementptr inbounds %class.b2Joint, ptr %32, i32 0, i32 6
  %54 = load ptr, ptr %53, align 8, !tbaa !9
  %55 = getelementptr inbounds %class.b2Body, ptr %54, i32 0, i32 20
  %56 = load float, ptr %55, align 4, !tbaa !33
  %57 = getelementptr inbounds %class.b2DistanceJoint, ptr %32, i32 0, i32 21
  store float %56, ptr %57, align 4, !tbaa !34
  %58 = getelementptr inbounds %class.b2Joint, ptr %32, i32 0, i32 7
  %59 = load ptr, ptr %58, align 8, !tbaa !29
  %60 = getelementptr inbounds %class.b2Body, ptr %59, i32 0, i32 20
  %61 = load float, ptr %60, align 4, !tbaa !33
  %62 = getelementptr inbounds %class.b2DistanceJoint, ptr %32, i32 0, i32 22
  store float %61, ptr %62, align 8, !tbaa !35
  %63 = getelementptr inbounds %class.b2Joint, ptr %32, i32 0, i32 6
  %64 = load ptr, ptr %63, align 8, !tbaa !9
  %65 = getelementptr inbounds %class.b2Body, ptr %64, i32 0, i32 22
  %66 = load float, ptr %65, align 4, !tbaa !36
  %67 = getelementptr inbounds %class.b2DistanceJoint, ptr %32, i32 0, i32 23
  store float %66, ptr %67, align 4, !tbaa !37
  %68 = getelementptr inbounds %class.b2Joint, ptr %32, i32 0, i32 7
  %69 = load ptr, ptr %68, align 8, !tbaa !29
  %70 = getelementptr inbounds %class.b2Body, ptr %69, i32 0, i32 22
  %71 = load float, ptr %70, align 4, !tbaa !36
  %72 = getelementptr inbounds %class.b2DistanceJoint, ptr %32, i32 0, i32 24
  store float %71, ptr %72, align 8, !tbaa !38
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #7
  %73 = load ptr, ptr %4, align 8, !tbaa !5
  %74 = getelementptr inbounds %struct.b2SolverData, ptr %73, i32 0, i32 1
  %75 = load ptr, ptr %74, align 8, !tbaa !39
  %76 = getelementptr inbounds %class.b2DistanceJoint, ptr %32, i32 0, i32 13
  %77 = load i32, ptr %76, align 8, !tbaa !27
  %78 = sext i32 %77 to i64
  %79 = getelementptr inbounds %struct.b2Position, ptr %75, i64 %78
  %80 = getelementptr inbounds %struct.b2Position, ptr %79, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %5, ptr align 4 %80, i64 8, i1 false), !tbaa.struct !31
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #7
  %81 = load ptr, ptr %4, align 8, !tbaa !5
  %82 = getelementptr inbounds %struct.b2SolverData, ptr %81, i32 0, i32 1
  %83 = load ptr, ptr %82, align 8, !tbaa !39
  %84 = getelementptr inbounds %class.b2DistanceJoint, ptr %32, i32 0, i32 13
  %85 = load i32, ptr %84, align 8, !tbaa !27
  %86 = sext i32 %85 to i64
  %87 = getelementptr inbounds %struct.b2Position, ptr %83, i64 %86
  %88 = getelementptr inbounds %struct.b2Position, ptr %87, i32 0, i32 1
  %89 = load float, ptr %88, align 4, !tbaa !42
  store float %89, ptr %6, align 4, !tbaa !32
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #7
  %90 = load ptr, ptr %4, align 8, !tbaa !5
  %91 = getelementptr inbounds %struct.b2SolverData, ptr %90, i32 0, i32 2
  %92 = load ptr, ptr %91, align 8, !tbaa !44
  %93 = getelementptr inbounds %class.b2DistanceJoint, ptr %32, i32 0, i32 13
  %94 = load i32, ptr %93, align 8, !tbaa !27
  %95 = sext i32 %94 to i64
  %96 = getelementptr inbounds %struct.b2Velocity, ptr %92, i64 %95
  %97 = getelementptr inbounds %struct.b2Velocity, ptr %96, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %7, ptr align 4 %97, i64 8, i1 false), !tbaa.struct !31
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #7
  %98 = load ptr, ptr %4, align 8, !tbaa !5
  %99 = getelementptr inbounds %struct.b2SolverData, ptr %98, i32 0, i32 2
  %100 = load ptr, ptr %99, align 8, !tbaa !44
  %101 = getelementptr inbounds %class.b2DistanceJoint, ptr %32, i32 0, i32 13
  %102 = load i32, ptr %101, align 8, !tbaa !27
  %103 = sext i32 %102 to i64
  %104 = getelementptr inbounds %struct.b2Velocity, ptr %100, i64 %103
  %105 = getelementptr inbounds %struct.b2Velocity, ptr %104, i32 0, i32 1
  %106 = load float, ptr %105, align 4, !tbaa !45
  store float %106, ptr %8, align 4, !tbaa !32
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #7
  %107 = load ptr, ptr %4, align 8, !tbaa !5
  %108 = getelementptr inbounds %struct.b2SolverData, ptr %107, i32 0, i32 1
  %109 = load ptr, ptr %108, align 8, !tbaa !39
  %110 = getelementptr inbounds %class.b2DistanceJoint, ptr %32, i32 0, i32 14
  %111 = load i32, ptr %110, align 4, !tbaa !30
  %112 = sext i32 %111 to i64
  %113 = getelementptr inbounds %struct.b2Position, ptr %109, i64 %112
  %114 = getelementptr inbounds %struct.b2Position, ptr %113, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %9, ptr align 4 %114, i64 8, i1 false), !tbaa.struct !31
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #7
  %115 = load ptr, ptr %4, align 8, !tbaa !5
  %116 = getelementptr inbounds %struct.b2SolverData, ptr %115, i32 0, i32 1
  %117 = load ptr, ptr %116, align 8, !tbaa !39
  %118 = getelementptr inbounds %class.b2DistanceJoint, ptr %32, i32 0, i32 14
  %119 = load i32, ptr %118, align 4, !tbaa !30
  %120 = sext i32 %119 to i64
  %121 = getelementptr inbounds %struct.b2Position, ptr %117, i64 %120
  %122 = getelementptr inbounds %struct.b2Position, ptr %121, i32 0, i32 1
  %123 = load float, ptr %122, align 4, !tbaa !42
  store float %123, ptr %10, align 4, !tbaa !32
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #7
  %124 = load ptr, ptr %4, align 8, !tbaa !5
  %125 = getelementptr inbounds %struct.b2SolverData, ptr %124, i32 0, i32 2
  %126 = load ptr, ptr %125, align 8, !tbaa !44
  %127 = getelementptr inbounds %class.b2DistanceJoint, ptr %32, i32 0, i32 14
  %128 = load i32, ptr %127, align 4, !tbaa !30
  %129 = sext i32 %128 to i64
  %130 = getelementptr inbounds %struct.b2Velocity, ptr %126, i64 %129
  %131 = getelementptr inbounds %struct.b2Velocity, ptr %130, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %11, ptr align 4 %131, i64 8, i1 false), !tbaa.struct !31
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #7
  %132 = load ptr, ptr %4, align 8, !tbaa !5
  %133 = getelementptr inbounds %struct.b2SolverData, ptr %132, i32 0, i32 2
  %134 = load ptr, ptr %133, align 8, !tbaa !44
  %135 = getelementptr inbounds %class.b2DistanceJoint, ptr %32, i32 0, i32 14
  %136 = load i32, ptr %135, align 4, !tbaa !30
  %137 = sext i32 %136 to i64
  %138 = getelementptr inbounds %struct.b2Velocity, ptr %134, i64 %137
  %139 = getelementptr inbounds %struct.b2Velocity, ptr %138, i32 0, i32 1
  %140 = load float, ptr %139, align 4, !tbaa !45
  store float %140, ptr %12, align 4, !tbaa !32
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #7
  %141 = load float, ptr %6, align 4, !tbaa !32
  call void @_ZN5b2RotC2Ef(ptr noundef nonnull align 4 dereferenceable(8) %13, float noundef %141)
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #7
  %142 = load float, ptr %10, align 4, !tbaa !32
  call void @_ZN5b2RotC2Ef(ptr noundef nonnull align 4 dereferenceable(8) %14, float noundef %142)
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #7
  %143 = getelementptr inbounds %class.b2DistanceJoint, ptr %32, i32 0, i32 7
  %144 = getelementptr inbounds %class.b2DistanceJoint, ptr %32, i32 0, i32 18
  %145 = call <2 x float> @_ZmiRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %143, ptr noundef nonnull align 4 dereferenceable(8) %144)
  store <2 x float> %145, ptr %16, align 4
  %146 = call <2 x float> @_Z5b2MulRK5b2RotRK6b2Vec2(ptr noundef nonnull align 4 dereferenceable(8) %13, ptr noundef nonnull align 4 dereferenceable(8) %16)
  store <2 x float> %146, ptr %15, align 4
  %147 = getelementptr inbounds %class.b2DistanceJoint, ptr %32, i32 0, i32 16
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %147, ptr align 4 %15, i64 8, i1 false), !tbaa.struct !31
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #7
  %148 = getelementptr inbounds %class.b2DistanceJoint, ptr %32, i32 0, i32 8
  %149 = getelementptr inbounds %class.b2DistanceJoint, ptr %32, i32 0, i32 19
  %150 = call <2 x float> @_ZmiRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %148, ptr noundef nonnull align 4 dereferenceable(8) %149)
  store <2 x float> %150, ptr %18, align 4
  %151 = call <2 x float> @_Z5b2MulRK5b2RotRK6b2Vec2(ptr noundef nonnull align 4 dereferenceable(8) %14, ptr noundef nonnull align 4 dereferenceable(8) %18)
  store <2 x float> %151, ptr %17, align 4
  %152 = getelementptr inbounds %class.b2DistanceJoint, ptr %32, i32 0, i32 17
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %152, ptr align 4 %17, i64 8, i1 false), !tbaa.struct !31
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #7
  %153 = getelementptr inbounds %class.b2DistanceJoint, ptr %32, i32 0, i32 17
  %154 = call <2 x float> @_ZplRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %9, ptr noundef nonnull align 4 dereferenceable(8) %153)
  store <2 x float> %154, ptr %21, align 4
  %155 = call <2 x float> @_ZmiRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %21, ptr noundef nonnull align 4 dereferenceable(8) %5)
  store <2 x float> %155, ptr %20, align 4
  %156 = getelementptr inbounds %class.b2DistanceJoint, ptr %32, i32 0, i32 16
  %157 = call <2 x float> @_ZmiRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %20, ptr noundef nonnull align 4 dereferenceable(8) %156)
  store <2 x float> %157, ptr %19, align 4
  %158 = getelementptr inbounds %class.b2DistanceJoint, ptr %32, i32 0, i32 15
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %158, ptr align 4 %19, i64 8, i1 false), !tbaa.struct !31
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #7
  %159 = getelementptr inbounds %class.b2DistanceJoint, ptr %32, i32 0, i32 15
  %160 = call noundef float @_ZNK6b2Vec26LengthEv(ptr noundef nonnull align 4 dereferenceable(8) %159)
  %161 = getelementptr inbounds %class.b2DistanceJoint, ptr %32, i32 0, i32 20
  store float %160, ptr %161, align 8, !tbaa !47
  %162 = getelementptr inbounds %class.b2DistanceJoint, ptr %32, i32 0, i32 20
  %163 = load float, ptr %162, align 8, !tbaa !47
  %164 = fcmp ogt float %163, 0x3F747AE140000000
  br i1 %164, label %165, label %170

165:                                              ; preds = %2
  %166 = getelementptr inbounds %class.b2DistanceJoint, ptr %32, i32 0, i32 20
  %167 = load float, ptr %166, align 8, !tbaa !47
  %168 = fdiv float 1.000000e+00, %167
  %169 = getelementptr inbounds %class.b2DistanceJoint, ptr %32, i32 0, i32 15
  call void @_ZN6b2Vec2mLEf(ptr noundef nonnull align 4 dereferenceable(8) %169, float noundef %168)
  br label %176

170:                                              ; preds = %2
  %171 = getelementptr inbounds %class.b2DistanceJoint, ptr %32, i32 0, i32 15
  call void @_ZN6b2Vec23SetEff(ptr noundef nonnull align 4 dereferenceable(8) %171, float noundef 0.000000e+00, float noundef 0.000000e+00)
  %172 = getelementptr inbounds %class.b2DistanceJoint, ptr %32, i32 0, i32 26
  store float 0.000000e+00, ptr %172, align 8, !tbaa !48
  %173 = getelementptr inbounds %class.b2DistanceJoint, ptr %32, i32 0, i32 10
  store float 0.000000e+00, ptr %173, align 4, !tbaa !49
  %174 = getelementptr inbounds %class.b2DistanceJoint, ptr %32, i32 0, i32 11
  store float 0.000000e+00, ptr %174, align 8, !tbaa !50
  %175 = getelementptr inbounds %class.b2DistanceJoint, ptr %32, i32 0, i32 12
  store float 0.000000e+00, ptr %175, align 4, !tbaa !51
  br label %176

176:                                              ; preds = %170, %165
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #7
  %177 = getelementptr inbounds %class.b2DistanceJoint, ptr %32, i32 0, i32 16
  %178 = getelementptr inbounds %class.b2DistanceJoint, ptr %32, i32 0, i32 15
  %179 = call noundef float @_Z7b2CrossRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %177, ptr noundef nonnull align 4 dereferenceable(8) %178)
  store float %179, ptr %22, align 4, !tbaa !32
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #7
  %180 = getelementptr inbounds %class.b2DistanceJoint, ptr %32, i32 0, i32 17
  %181 = getelementptr inbounds %class.b2DistanceJoint, ptr %32, i32 0, i32 15
  %182 = call noundef float @_Z7b2CrossRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %180, ptr noundef nonnull align 4 dereferenceable(8) %181)
  store float %182, ptr %23, align 4, !tbaa !32
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #7
  %183 = getelementptr inbounds %class.b2DistanceJoint, ptr %32, i32 0, i32 21
  %184 = load float, ptr %183, align 4, !tbaa !34
  %185 = getelementptr inbounds %class.b2DistanceJoint, ptr %32, i32 0, i32 23
  %186 = load float, ptr %185, align 4, !tbaa !37
  %187 = load float, ptr %22, align 4, !tbaa !32
  %188 = fmul float %186, %187
  %189 = load float, ptr %22, align 4, !tbaa !32
  %190 = call float @llvm.fmuladd.f32(float %188, float %189, float %184)
  %191 = getelementptr inbounds %class.b2DistanceJoint, ptr %32, i32 0, i32 22
  %192 = load float, ptr %191, align 8, !tbaa !35
  %193 = fadd float %190, %192
  %194 = getelementptr inbounds %class.b2DistanceJoint, ptr %32, i32 0, i32 24
  %195 = load float, ptr %194, align 8, !tbaa !38
  %196 = load float, ptr %23, align 4, !tbaa !32
  %197 = fmul float %195, %196
  %198 = load float, ptr %23, align 4, !tbaa !32
  %199 = call float @llvm.fmuladd.f32(float %197, float %198, float %193)
  store float %199, ptr %24, align 4, !tbaa !32
  %200 = load float, ptr %24, align 4, !tbaa !32
  %201 = fcmp une float %200, 0.000000e+00
  br i1 %201, label %202, label %205

202:                                              ; preds = %176
  %203 = load float, ptr %24, align 4, !tbaa !32
  %204 = fdiv float 1.000000e+00, %203
  br label %206

205:                                              ; preds = %176
  br label %206

206:                                              ; preds = %205, %202
  %207 = phi float [ %204, %202 ], [ 0.000000e+00, %205 ]
  %208 = getelementptr inbounds %class.b2DistanceJoint, ptr %32, i32 0, i32 26
  store float %207, ptr %208, align 8, !tbaa !48
  %209 = getelementptr inbounds %class.b2DistanceJoint, ptr %32, i32 0, i32 1
  %210 = load float, ptr %209, align 8, !tbaa !52
  %211 = fcmp ogt float %210, 0.000000e+00
  br i1 %211, label %212, label %272

212:                                              ; preds = %206
  %213 = getelementptr inbounds %class.b2DistanceJoint, ptr %32, i32 0, i32 5
  %214 = load float, ptr %213, align 8, !tbaa !53
  %215 = getelementptr inbounds %class.b2DistanceJoint, ptr %32, i32 0, i32 6
  %216 = load float, ptr %215, align 4, !tbaa !54
  %217 = fcmp olt float %214, %216
  br i1 %217, label %218, label %272

218:                                              ; preds = %212
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #7
  %219 = getelementptr inbounds %class.b2DistanceJoint, ptr %32, i32 0, i32 20
  %220 = load float, ptr %219, align 8, !tbaa !47
  %221 = getelementptr inbounds %class.b2DistanceJoint, ptr %32, i32 0, i32 4
  %222 = load float, ptr %221, align 4, !tbaa !55
  %223 = fsub float %220, %222
  store float %223, ptr %25, align 4, !tbaa !32
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #7
  %224 = getelementptr inbounds %class.b2DistanceJoint, ptr %32, i32 0, i32 2
  %225 = load float, ptr %224, align 4, !tbaa !56
  store float %225, ptr %26, align 4, !tbaa !32
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #7
  %226 = getelementptr inbounds %class.b2DistanceJoint, ptr %32, i32 0, i32 1
  %227 = load float, ptr %226, align 8, !tbaa !52
  store float %227, ptr %27, align 4, !tbaa !32
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #7
  %228 = load ptr, ptr %4, align 8, !tbaa !5
  %229 = getelementptr inbounds %struct.b2SolverData, ptr %228, i32 0, i32 0
  %230 = getelementptr inbounds %struct.b2TimeStep, ptr %229, i32 0, i32 0
  %231 = load float, ptr %230, align 8, !tbaa !57
  store float %231, ptr %28, align 4, !tbaa !32
  %232 = load float, ptr %28, align 4, !tbaa !32
  %233 = load float, ptr %26, align 4, !tbaa !32
  %234 = load float, ptr %28, align 4, !tbaa !32
  %235 = load float, ptr %27, align 4, !tbaa !32
  %236 = call float @llvm.fmuladd.f32(float %234, float %235, float %233)
  %237 = fmul float %232, %236
  %238 = getelementptr inbounds %class.b2DistanceJoint, ptr %32, i32 0, i32 9
  store float %237, ptr %238, align 8, !tbaa !58
  %239 = getelementptr inbounds %class.b2DistanceJoint, ptr %32, i32 0, i32 9
  %240 = load float, ptr %239, align 8, !tbaa !58
  %241 = fcmp une float %240, 0.000000e+00
  br i1 %241, label %242, label %246

242:                                              ; preds = %218
  %243 = getelementptr inbounds %class.b2DistanceJoint, ptr %32, i32 0, i32 9
  %244 = load float, ptr %243, align 8, !tbaa !58
  %245 = fdiv float 1.000000e+00, %244
  br label %247

246:                                              ; preds = %218
  br label %247

247:                                              ; preds = %246, %242
  %248 = phi float [ %245, %242 ], [ 0.000000e+00, %246 ]
  %249 = getelementptr inbounds %class.b2DistanceJoint, ptr %32, i32 0, i32 9
  store float %248, ptr %249, align 8, !tbaa !58
  %250 = load float, ptr %25, align 4, !tbaa !32
  %251 = load float, ptr %28, align 4, !tbaa !32
  %252 = fmul float %250, %251
  %253 = load float, ptr %27, align 4, !tbaa !32
  %254 = fmul float %252, %253
  %255 = getelementptr inbounds %class.b2DistanceJoint, ptr %32, i32 0, i32 9
  %256 = load float, ptr %255, align 8, !tbaa !58
  %257 = fmul float %254, %256
  %258 = getelementptr inbounds %class.b2DistanceJoint, ptr %32, i32 0, i32 3
  store float %257, ptr %258, align 8, !tbaa !59
  %259 = getelementptr inbounds %class.b2DistanceJoint, ptr %32, i32 0, i32 9
  %260 = load float, ptr %259, align 8, !tbaa !58
  %261 = load float, ptr %24, align 4, !tbaa !32
  %262 = fadd float %261, %260
  store float %262, ptr %24, align 4, !tbaa !32
  %263 = load float, ptr %24, align 4, !tbaa !32
  %264 = fcmp une float %263, 0.000000e+00
  br i1 %264, label %265, label %268

265:                                              ; preds = %247
  %266 = load float, ptr %24, align 4, !tbaa !32
  %267 = fdiv float 1.000000e+00, %266
  br label %269

268:                                              ; preds = %247
  br label %269

269:                                              ; preds = %268, %265
  %270 = phi float [ %267, %265 ], [ 0.000000e+00, %268 ]
  %271 = getelementptr inbounds %class.b2DistanceJoint, ptr %32, i32 0, i32 25
  store float %270, ptr %271, align 4, !tbaa !60
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #7
  br label %278

272:                                              ; preds = %212, %206
  %273 = getelementptr inbounds %class.b2DistanceJoint, ptr %32, i32 0, i32 9
  store float 0.000000e+00, ptr %273, align 8, !tbaa !58
  %274 = getelementptr inbounds %class.b2DistanceJoint, ptr %32, i32 0, i32 3
  store float 0.000000e+00, ptr %274, align 8, !tbaa !59
  %275 = getelementptr inbounds %class.b2DistanceJoint, ptr %32, i32 0, i32 26
  %276 = load float, ptr %275, align 8, !tbaa !48
  %277 = getelementptr inbounds %class.b2DistanceJoint, ptr %32, i32 0, i32 25
  store float %276, ptr %277, align 4, !tbaa !60
  br label %278

278:                                              ; preds = %272, %269
  %279 = load ptr, ptr %4, align 8, !tbaa !5
  %280 = getelementptr inbounds %struct.b2SolverData, ptr %279, i32 0, i32 0
  %281 = getelementptr inbounds %struct.b2TimeStep, ptr %280, i32 0, i32 6
  %282 = load i8, ptr %281, align 8, !tbaa !61, !range !62, !noundef !63
  %283 = trunc i8 %282 to i1
  br i1 %283, label %284, label %335

284:                                              ; preds = %278
  %285 = load ptr, ptr %4, align 8, !tbaa !5
  %286 = getelementptr inbounds %struct.b2SolverData, ptr %285, i32 0, i32 0
  %287 = getelementptr inbounds %struct.b2TimeStep, ptr %286, i32 0, i32 2
  %288 = load float, ptr %287, align 8, !tbaa !64
  %289 = getelementptr inbounds %class.b2DistanceJoint, ptr %32, i32 0, i32 10
  %290 = load float, ptr %289, align 4, !tbaa !49
  %291 = fmul float %290, %288
  store float %291, ptr %289, align 4, !tbaa !49
  %292 = load ptr, ptr %4, align 8, !tbaa !5
  %293 = getelementptr inbounds %struct.b2SolverData, ptr %292, i32 0, i32 0
  %294 = getelementptr inbounds %struct.b2TimeStep, ptr %293, i32 0, i32 2
  %295 = load float, ptr %294, align 8, !tbaa !64
  %296 = getelementptr inbounds %class.b2DistanceJoint, ptr %32, i32 0, i32 11
  %297 = load float, ptr %296, align 8, !tbaa !50
  %298 = fmul float %297, %295
  store float %298, ptr %296, align 8, !tbaa !50
  %299 = load ptr, ptr %4, align 8, !tbaa !5
  %300 = getelementptr inbounds %struct.b2SolverData, ptr %299, i32 0, i32 0
  %301 = getelementptr inbounds %struct.b2TimeStep, ptr %300, i32 0, i32 2
  %302 = load float, ptr %301, align 8, !tbaa !64
  %303 = getelementptr inbounds %class.b2DistanceJoint, ptr %32, i32 0, i32 12
  %304 = load float, ptr %303, align 4, !tbaa !51
  %305 = fmul float %304, %302
  store float %305, ptr %303, align 4, !tbaa !51
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #7
  %306 = getelementptr inbounds %class.b2DistanceJoint, ptr %32, i32 0, i32 10
  %307 = load float, ptr %306, align 4, !tbaa !49
  %308 = getelementptr inbounds %class.b2DistanceJoint, ptr %32, i32 0, i32 11
  %309 = load float, ptr %308, align 8, !tbaa !50
  %310 = fadd float %307, %309
  %311 = getelementptr inbounds %class.b2DistanceJoint, ptr %32, i32 0, i32 12
  %312 = load float, ptr %311, align 4, !tbaa !51
  %313 = fsub float %310, %312
  %314 = getelementptr inbounds %class.b2DistanceJoint, ptr %32, i32 0, i32 15
  %315 = call <2 x float> @_ZmlfRK6b2Vec2(float noundef %313, ptr noundef nonnull align 4 dereferenceable(8) %314)
  store <2 x float> %315, ptr %29, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #7
  %316 = getelementptr inbounds %class.b2DistanceJoint, ptr %32, i32 0, i32 21
  %317 = load float, ptr %316, align 4, !tbaa !34
  %318 = call <2 x float> @_ZmlfRK6b2Vec2(float noundef %317, ptr noundef nonnull align 4 dereferenceable(8) %29)
  store <2 x float> %318, ptr %30, align 4
  call void @_ZN6b2Vec2mIERKS_(ptr noundef nonnull align 4 dereferenceable(8) %7, ptr noundef nonnull align 4 dereferenceable(8) %30)
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #7
  %319 = getelementptr inbounds %class.b2DistanceJoint, ptr %32, i32 0, i32 23
  %320 = load float, ptr %319, align 4, !tbaa !37
  %321 = getelementptr inbounds %class.b2DistanceJoint, ptr %32, i32 0, i32 16
  %322 = call noundef float @_Z7b2CrossRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %321, ptr noundef nonnull align 4 dereferenceable(8) %29)
  %323 = load float, ptr %8, align 4, !tbaa !32
  %324 = fneg float %320
  %325 = call float @llvm.fmuladd.f32(float %324, float %322, float %323)
  store float %325, ptr %8, align 4, !tbaa !32
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #7
  %326 = getelementptr inbounds %class.b2DistanceJoint, ptr %32, i32 0, i32 22
  %327 = load float, ptr %326, align 8, !tbaa !35
  %328 = call <2 x float> @_ZmlfRK6b2Vec2(float noundef %327, ptr noundef nonnull align 4 dereferenceable(8) %29)
  store <2 x float> %328, ptr %31, align 4
  call void @_ZN6b2Vec2pLERKS_(ptr noundef nonnull align 4 dereferenceable(8) %11, ptr noundef nonnull align 4 dereferenceable(8) %31)
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #7
  %329 = getelementptr inbounds %class.b2DistanceJoint, ptr %32, i32 0, i32 24
  %330 = load float, ptr %329, align 8, !tbaa !38
  %331 = getelementptr inbounds %class.b2DistanceJoint, ptr %32, i32 0, i32 17
  %332 = call noundef float @_Z7b2CrossRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %331, ptr noundef nonnull align 4 dereferenceable(8) %29)
  %333 = load float, ptr %12, align 4, !tbaa !32
  %334 = call float @llvm.fmuladd.f32(float %330, float %332, float %333)
  store float %334, ptr %12, align 4, !tbaa !32
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #7
  br label %337

335:                                              ; preds = %278
  %336 = getelementptr inbounds %class.b2DistanceJoint, ptr %32, i32 0, i32 10
  store float 0.000000e+00, ptr %336, align 4, !tbaa !49
  br label %337

337:                                              ; preds = %335, %284
  %338 = load ptr, ptr %4, align 8, !tbaa !5
  %339 = getelementptr inbounds %struct.b2SolverData, ptr %338, i32 0, i32 2
  %340 = load ptr, ptr %339, align 8, !tbaa !44
  %341 = getelementptr inbounds %class.b2DistanceJoint, ptr %32, i32 0, i32 13
  %342 = load i32, ptr %341, align 8, !tbaa !27
  %343 = sext i32 %342 to i64
  %344 = getelementptr inbounds %struct.b2Velocity, ptr %340, i64 %343
  %345 = getelementptr inbounds %struct.b2Velocity, ptr %344, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %345, ptr align 4 %7, i64 8, i1 false), !tbaa.struct !31
  %346 = load float, ptr %8, align 4, !tbaa !32
  %347 = load ptr, ptr %4, align 8, !tbaa !5
  %348 = getelementptr inbounds %struct.b2SolverData, ptr %347, i32 0, i32 2
  %349 = load ptr, ptr %348, align 8, !tbaa !44
  %350 = getelementptr inbounds %class.b2DistanceJoint, ptr %32, i32 0, i32 13
  %351 = load i32, ptr %350, align 8, !tbaa !27
  %352 = sext i32 %351 to i64
  %353 = getelementptr inbounds %struct.b2Velocity, ptr %349, i64 %352
  %354 = getelementptr inbounds %struct.b2Velocity, ptr %353, i32 0, i32 1
  store float %346, ptr %354, align 4, !tbaa !45
  %355 = load ptr, ptr %4, align 8, !tbaa !5
  %356 = getelementptr inbounds %struct.b2SolverData, ptr %355, i32 0, i32 2
  %357 = load ptr, ptr %356, align 8, !tbaa !44
  %358 = getelementptr inbounds %class.b2DistanceJoint, ptr %32, i32 0, i32 14
  %359 = load i32, ptr %358, align 4, !tbaa !30
  %360 = sext i32 %359 to i64
  %361 = getelementptr inbounds %struct.b2Velocity, ptr %357, i64 %360
  %362 = getelementptr inbounds %struct.b2Velocity, ptr %361, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %362, ptr align 4 %11, i64 8, i1 false), !tbaa.struct !31
  %363 = load float, ptr %12, align 4, !tbaa !32
  %364 = load ptr, ptr %4, align 8, !tbaa !5
  %365 = getelementptr inbounds %struct.b2SolverData, ptr %364, i32 0, i32 2
  %366 = load ptr, ptr %365, align 8, !tbaa !44
  %367 = getelementptr inbounds %class.b2DistanceJoint, ptr %32, i32 0, i32 14
  %368 = load i32, ptr %367, align 4, !tbaa !30
  %369 = sext i32 %368 to i64
  %370 = getelementptr inbounds %struct.b2Velocity, ptr %366, i64 %369
  %371 = getelementptr inbounds %struct.b2Velocity, ptr %370, i32 0, i32 1
  store float %363, ptr %371, align 4, !tbaa !45
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #7
  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 uwtable
declare dso_local <2 x float> @_Z5b2MulRK5b2RotRK6b2Vec2(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) #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)) #2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN6b2Vec23SetEff(ptr noundef nonnull align 4 dereferenceable(8), float noundef, float noundef) #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

; 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> @_ZmlfRK6b2Vec2(float noundef, ptr noundef nonnull align 4 dereferenceable(8)) #2

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

; 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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #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 = { 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 96}
!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 184}
!28 = !{!"_ZTS15b2DistanceJoint", !10, i64 0, !23, i64 128, !23, i64 132, !23, i64 136, !23, i64 140, !23, i64 144, !23, i64 148, !22, i64 152, !22, i64 160, !23, i64 168, !23, i64 172, !23, i64 176, !23, i64 180, !13, i64 184, !13, i64 188, !22, i64 192, !22, i64 200, !22, i64 208, !22, i64 216, !22, i64 224, !23, i64 232, !23, i64 236, !23, i64 240, !23, i64 244, !23, i64 248, !23, i64 252, !23, i64 256}
!29 = !{!10, !6, i64 104}
!30 = !{!28, !13, i64 188}
!31 = !{i64 0, i64 4, !32, i64 4, i64 4, !32}
!32 = !{!23, !23, i64 0}
!33 = !{!18, !23, i64 172}
!34 = !{!28, !23, i64 236}
!35 = !{!28, !23, i64 240}
!36 = !{!18, !23, i64 180}
!37 = !{!28, !23, i64 244}
!38 = !{!28, !23, i64 248}
!39 = !{!40, !6, i64 32}
!40 = !{!"_ZTS12b2SolverData", !41, i64 0, !6, i64 32, !6, i64 40}
!41 = !{!"_ZTS10b2TimeStep", !23, i64 0, !23, i64 4, !23, i64 8, !13, i64 12, !13, i64 16, !13, i64 20, !14, i64 24}
!42 = !{!43, !23, i64 8}
!43 = !{!"_ZTS10b2Position", !22, i64 0, !23, i64 8}
!44 = !{!40, !6, i64 40}
!45 = !{!46, !23, i64 8}
!46 = !{!"_ZTS10b2Velocity", !22, i64 0, !23, i64 8}
!47 = !{!28, !23, i64 232}
!48 = !{!28, !23, i64 256}
!49 = !{!28, !23, i64 172}
!50 = !{!28, !23, i64 176}
!51 = !{!28, !23, i64 180}
!52 = !{!28, !23, i64 128}
!53 = !{!28, !23, i64 144}
!54 = !{!28, !23, i64 148}
!55 = !{!28, !23, i64 140}
!56 = !{!28, !23, i64 132}
!57 = !{!40, !23, i64 0}
!58 = !{!28, !23, i64 168}
!59 = !{!28, !23, i64 136}
!60 = !{!28, !23, i64 252}
!61 = !{!40, !14, i64 24}
!62 = !{i8 0, i8 2}
!63 = !{}
!64 = !{!40, !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.b2Position = type { %struct.b2Vec2, float }
%struct.b2Velocity = type { %struct.b2Vec2, float }

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

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

; Function Attrs: 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 #1

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN15b2DistanceJoint23InitVelocityConstraintsERK12b2SolverData(ptr noundef nonnull align 8 dereferenceable(260) %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.b2Vec2, align 8
  %6 = alloca %struct.b2Vec2, align 8
  %7 = alloca %struct.b2Rot, align 4
  %8 = alloca %struct.b2Rot, align 4
  %9 = alloca %struct.b2Vec2, align 8
  %10 = alloca %struct.b2Vec2, align 8
  %11 = alloca %struct.b2Vec2, align 8
  %12 = alloca %struct.b2Vec2, align 8
  %13 = alloca %struct.b2Vec2, align 8
  %14 = alloca %struct.b2Vec2, align 8
  %15 = alloca %struct.b2Vec2, align 8
  %16 = getelementptr inbounds i8, ptr %0, i64 96
  %17 = load ptr, ptr %16, align 8, !tbaa !5
  %18 = getelementptr inbounds i8, ptr %17, i64 8
  %19 = load i32, ptr %18, align 8, !tbaa !16
  %20 = getelementptr inbounds i8, ptr %0, i64 184
  store i32 %19, ptr %20, align 8, !tbaa !26
  %21 = getelementptr inbounds i8, ptr %0, i64 104
  %22 = load ptr, ptr %21, align 8, !tbaa !28
  %23 = getelementptr inbounds i8, ptr %22, i64 8
  %24 = load i32, ptr %23, align 8, !tbaa !16
  %25 = getelementptr inbounds i8, ptr %0, i64 188
  store i32 %24, ptr %25, align 4, !tbaa !29
  %26 = getelementptr inbounds i8, ptr %17, i64 44
  %27 = getelementptr inbounds i8, ptr %0, i64 216
  %28 = load i64, ptr %26, align 4
  store i64 %28, ptr %27, align 8
  %29 = getelementptr inbounds i8, ptr %22, i64 44
  %30 = getelementptr inbounds i8, ptr %0, i64 224
  %31 = load i64, ptr %29, align 4
  store i64 %31, ptr %30, align 8
  %32 = getelementptr inbounds i8, ptr %17, i64 172
  %33 = load float, ptr %32, align 4, !tbaa !30
  %34 = getelementptr inbounds i8, ptr %0, i64 236
  store float %33, ptr %34, align 4, !tbaa !31
  %35 = getelementptr inbounds i8, ptr %22, i64 172
  %36 = load float, ptr %35, align 4, !tbaa !30
  %37 = getelementptr inbounds i8, ptr %0, i64 240
  store float %36, ptr %37, align 8, !tbaa !32
  %38 = getelementptr inbounds i8, ptr %17, i64 180
  %39 = load float, ptr %38, align 4, !tbaa !33
  %40 = getelementptr inbounds i8, ptr %0, i64 244
  store float %39, ptr %40, align 4, !tbaa !34
  %41 = getelementptr inbounds i8, ptr %22, i64 180
  %42 = load float, ptr %41, align 4, !tbaa !33
  %43 = getelementptr inbounds i8, ptr %0, i64 248
  store float %42, ptr %43, align 8, !tbaa !35
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #6
  %44 = getelementptr inbounds i8, ptr %1, i64 32
  %45 = load ptr, ptr %44, align 8, !tbaa !36
  %46 = sext i32 %19 to i64
  %47 = getelementptr inbounds %struct.b2Position, ptr %45, i64 %46
  %48 = load i64, ptr %47, align 4
  store i64 %48, ptr %3, align 8
  %49 = getelementptr inbounds %struct.b2Position, ptr %45, i64 %46, i32 1
  %50 = load float, ptr %49, align 4, !tbaa !39
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #6
  %51 = getelementptr inbounds i8, ptr %1, i64 40
  %52 = load ptr, ptr %51, align 8, !tbaa !41
  %53 = getelementptr inbounds %struct.b2Velocity, ptr %52, i64 %46
  %54 = load i64, ptr %53, align 4
  store i64 %54, ptr %4, align 8
  %55 = getelementptr inbounds %struct.b2Velocity, ptr %52, i64 %46, i32 1
  %56 = load float, ptr %55, align 4, !tbaa !42
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #6
  %57 = sext i32 %24 to i64
  %58 = getelementptr inbounds %struct.b2Position, ptr %45, i64 %57
  %59 = load i64, ptr %58, align 4
  store i64 %59, ptr %5, align 8
  %60 = getelementptr inbounds %struct.b2Position, ptr %45, i64 %57, i32 1
  %61 = load float, ptr %60, align 4, !tbaa !39
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #6
  %62 = getelementptr inbounds %struct.b2Velocity, ptr %52, i64 %57
  %63 = load i64, ptr %62, align 4
  store i64 %63, ptr %6, align 8
  %64 = getelementptr inbounds %struct.b2Velocity, ptr %52, i64 %57, i32 1
  %65 = load float, ptr %64, align 4, !tbaa !42
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #6
  call void @_ZN5b2RotC2Ef(ptr noundef nonnull align 4 dereferenceable(8) %7, float noundef %50)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #6
  call void @_ZN5b2RotC2Ef(ptr noundef nonnull align 4 dereferenceable(8) %8, float noundef %61)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #6
  %66 = getelementptr inbounds i8, ptr %0, i64 152
  %67 = call <2 x float> @_ZmiRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %66, ptr noundef nonnull align 4 dereferenceable(8) %27)
  store <2 x float> %67, ptr %9, align 8
  %68 = call <2 x float> @_Z5b2MulRK5b2RotRK6b2Vec2(ptr noundef nonnull align 4 dereferenceable(8) %7, ptr noundef nonnull align 4 dereferenceable(8) %9)
  %69 = getelementptr inbounds i8, ptr %0, i64 200
  store <2 x float> %68, ptr %69, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #6
  %70 = getelementptr inbounds i8, ptr %0, i64 160
  %71 = call <2 x float> @_ZmiRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %70, ptr noundef nonnull align 4 dereferenceable(8) %30)
  store <2 x float> %71, ptr %10, align 8
  %72 = call <2 x float> @_Z5b2MulRK5b2RotRK6b2Vec2(ptr noundef nonnull align 4 dereferenceable(8) %8, ptr noundef nonnull align 4 dereferenceable(8) %10)
  %73 = getelementptr inbounds i8, ptr %0, i64 208
  store <2 x float> %72, ptr %73, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #6
  %74 = call <2 x float> @_ZplRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %5, ptr noundef nonnull align 4 dereferenceable(8) %73)
  store <2 x float> %74, ptr %12, align 8
  %75 = call <2 x float> @_ZmiRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %12, ptr noundef nonnull align 4 dereferenceable(8) %3)
  store <2 x float> %75, ptr %11, align 8
  %76 = call <2 x float> @_ZmiRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %11, ptr noundef nonnull align 4 dereferenceable(8) %69)
  %77 = getelementptr inbounds i8, ptr %0, i64 192
  store <2 x float> %76, ptr %77, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #6
  %78 = call noundef float @_ZNK6b2Vec26LengthEv(ptr noundef nonnull align 4 dereferenceable(8) %77)
  %79 = getelementptr inbounds i8, ptr %0, i64 232
  store float %78, ptr %79, align 8, !tbaa !44
  %80 = fcmp ogt float %78, 0x3F747AE140000000
  br i1 %80, label %81, label %83

81:                                               ; preds = %2
  %82 = fdiv float 1.000000e+00, %78
  call void @_ZN6b2Vec2mLEf(ptr noundef nonnull align 4 dereferenceable(8) %77, float noundef %82)
  br label %87

83:                                               ; preds = %2
  call void @_ZN6b2Vec23SetEff(ptr noundef nonnull align 4 dereferenceable(8) %77, float noundef 0.000000e+00, float noundef 0.000000e+00)
  %84 = getelementptr inbounds i8, ptr %0, i64 256
  store float 0.000000e+00, ptr %84, align 8, !tbaa !45
  %85 = getelementptr inbounds i8, ptr %0, i64 172
  store <2 x float> zeroinitializer, ptr %85, align 4, !tbaa !46
  %86 = getelementptr inbounds i8, ptr %0, i64 180
  store float 0.000000e+00, ptr %86, align 4, !tbaa !47
  br label %87

87:                                               ; preds = %83, %81
  %88 = call noundef float @_Z7b2CrossRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %69, ptr noundef nonnull align 4 dereferenceable(8) %77)
  %89 = call noundef float @_Z7b2CrossRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %73, ptr noundef nonnull align 4 dereferenceable(8) %77)
  %90 = load float, ptr %34, align 4, !tbaa !31
  %91 = load float, ptr %40, align 4, !tbaa !34
  %92 = fmul float %88, %91
  %93 = call float @llvm.fmuladd.f32(float %92, float %88, float %90)
  %94 = load float, ptr %37, align 8, !tbaa !32
  %95 = fadd float %94, %93
  %96 = load float, ptr %43, align 8, !tbaa !35
  %97 = fmul float %89, %96
  %98 = call float @llvm.fmuladd.f32(float %97, float %89, float %95)
  %99 = fcmp une float %98, 0.000000e+00
  %100 = fdiv float 1.000000e+00, %98
  %101 = select i1 %99, float %100, float 0.000000e+00
  %102 = getelementptr inbounds i8, ptr %0, i64 256
  store float %101, ptr %102, align 8, !tbaa !45
  %103 = getelementptr inbounds i8, ptr %0, i64 128
  %104 = load float, ptr %103, align 8, !tbaa !48
  %105 = fcmp ogt float %104, 0.000000e+00
  br i1 %105, label %106, label %134

106:                                              ; preds = %87
  %107 = getelementptr inbounds i8, ptr %0, i64 144
  %108 = load float, ptr %107, align 8, !tbaa !49
  %109 = getelementptr inbounds i8, ptr %0, i64 148
  %110 = load float, ptr %109, align 4, !tbaa !50
  %111 = fcmp olt float %108, %110
  br i1 %111, label %112, label %134

112:                                              ; preds = %106
  %113 = load float, ptr %79, align 8, !tbaa !44
  %114 = getelementptr inbounds i8, ptr %0, i64 140
  %115 = load float, ptr %114, align 4, !tbaa !51
  %116 = fsub float %113, %115
  %117 = getelementptr inbounds i8, ptr %0, i64 132
  %118 = load float, ptr %117, align 4, !tbaa !52
  %119 = load float, ptr %1, align 8, !tbaa !53
  %120 = call float @llvm.fmuladd.f32(float %119, float %104, float %118)
  %121 = fmul float %119, %120
  %122 = getelementptr inbounds i8, ptr %0, i64 168
  %123 = fcmp une float %121, 0.000000e+00
  %124 = fdiv float 1.000000e+00, %121
  %125 = select i1 %123, float %124, float 0.000000e+00
  store float %125, ptr %122, align 8, !tbaa !54
  %126 = fmul float %116, %119
  %127 = fmul float %104, %126
  %128 = fmul float %127, %125
  %129 = getelementptr inbounds i8, ptr %0, i64 136
  store float %128, ptr %129, align 8, !tbaa !55
  %130 = fadd float %98, %125
  %131 = fcmp une float %130, 0.000000e+00
  %132 = fdiv float 1.000000e+00, %130
  %133 = select i1 %131, float %132, float 0.000000e+00
  br label %137

134:                                              ; preds = %106, %87
  %135 = getelementptr inbounds i8, ptr %0, i64 168
  store float 0.000000e+00, ptr %135, align 8, !tbaa !54
  %136 = getelementptr inbounds i8, ptr %0, i64 136
  store float 0.000000e+00, ptr %136, align 8, !tbaa !55
  br label %137

137:                                              ; preds = %134, %112
  %.sink = phi float [ %101, %134 ], [ %133, %112 ]
  %138 = getelementptr inbounds i8, ptr %0, i64 252
  store float %.sink, ptr %138, align 4, !tbaa !56
  %139 = getelementptr inbounds i8, ptr %1, i64 24
  %140 = load i8, ptr %139, align 8, !tbaa !57, !range !58, !noundef !59
  %141 = trunc nuw i8 %140 to i1
  br i1 %141, label %142, label %168

142:                                              ; preds = %137
  %143 = getelementptr inbounds i8, ptr %1, i64 8
  %144 = load float, ptr %143, align 8, !tbaa !60
  %145 = getelementptr inbounds i8, ptr %0, i64 172
  %146 = load <2 x float>, ptr %145, align 4, !tbaa !46
  %147 = insertelement <2 x float> poison, float %144, i64 0
  %148 = shufflevector <2 x float> %147, <2 x float> poison, <2 x i32> zeroinitializer
  %149 = fmul <2 x float> %148, %146
  store <2 x float> %149, ptr %145, align 4, !tbaa !46
  %150 = getelementptr inbounds i8, ptr %0, i64 180
  %151 = load float, ptr %150, align 4, !tbaa !47
  %152 = fmul float %144, %151
  store float %152, ptr %150, align 4, !tbaa !47
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #6
  %shift = shufflevector <2 x float> %149, <2 x float> poison, <2 x i32> <i32 1, i32 poison>
  %153 = fadd <2 x float> %149, %shift
  %154 = extractelement <2 x float> %153, i64 0
  %155 = fsub float %154, %152
  %156 = call <2 x float> @_ZmlfRK6b2Vec2(float noundef %155, ptr noundef nonnull align 4 dereferenceable(8) %77)
  store <2 x float> %156, ptr %13, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #6
  %157 = load float, ptr %34, align 4, !tbaa !31
  %158 = call <2 x float> @_ZmlfRK6b2Vec2(float noundef %157, ptr noundef nonnull align 4 dereferenceable(8) %13)
  store <2 x float> %158, ptr %14, align 8
  call void @_ZN6b2Vec2mIERKS_(ptr noundef nonnull align 4 dereferenceable(8) %4, ptr noundef nonnull align 4 dereferenceable(8) %14)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #6
  %159 = load float, ptr %40, align 4, !tbaa !34
  %160 = call noundef float @_Z7b2CrossRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %69, ptr noundef nonnull align 4 dereferenceable(8) %13)
  %161 = fneg float %159
  %162 = call float @llvm.fmuladd.f32(float %161, float %160, float %56)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %15) #6
  %163 = load float, ptr %37, align 8, !tbaa !32
  %164 = call <2 x float> @_ZmlfRK6b2Vec2(float noundef %163, ptr noundef nonnull align 4 dereferenceable(8) %13)
  store <2 x float> %164, ptr %15, align 8
  call void @_ZN6b2Vec2pLERKS_(ptr noundef nonnull align 4 dereferenceable(8) %6, ptr noundef nonnull align 4 dereferenceable(8) %15)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #6
  %165 = load float, ptr %43, align 8, !tbaa !35
  %166 = call noundef float @_Z7b2CrossRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %73, ptr noundef nonnull align 4 dereferenceable(8) %13)
  %167 = call float @llvm.fmuladd.f32(float %165, float %166, float %65)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #6
  %.pre = load i64, ptr %4, align 8
  br label %170

168:                                              ; preds = %137
  %169 = getelementptr inbounds i8, ptr %0, i64 172
  store float 0.000000e+00, ptr %169, align 4, !tbaa !61
  br label %170

170:                                              ; preds = %168, %142
  %171 = phi i64 [ %.pre, %142 ], [ %54, %168 ]
  %.042 = phi float [ %167, %142 ], [ %65, %168 ]
  %.0 = phi float [ %162, %142 ], [ %56, %168 ]
  %172 = load ptr, ptr %51, align 8, !tbaa !41
  %173 = load i32, ptr %20, align 8, !tbaa !26
  %174 = sext i32 %173 to i64
  %175 = getelementptr inbounds %struct.b2Velocity, ptr %172, i64 %174
  store i64 %171, ptr %175, align 4
  %176 = load ptr, ptr %51, align 8, !tbaa !41
  %177 = load i32, ptr %20, align 8, !tbaa !26
  %178 = sext i32 %177 to i64
  %179 = getelementptr inbounds %struct.b2Velocity, ptr %176, i64 %178, i32 1
  store float %.0, ptr %179, align 4, !tbaa !42
  %180 = load i32, ptr %25, align 4, !tbaa !29
  %181 = sext i32 %180 to i64
  %182 = getelementptr inbounds %struct.b2Velocity, ptr %176, i64 %181
  %183 = load i64, ptr %6, align 8
  store i64 %183, ptr %182, align 4
  %184 = load ptr, ptr %51, align 8, !tbaa !41
  %185 = load i32, ptr %25, align 4, !tbaa !29
  %186 = sext i32 %185 to i64
  %187 = getelementptr inbounds %struct.b2Velocity, ptr %184, i64 %186, i32 1
  store float %.042, ptr %187, align 4, !tbaa !42
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #6
  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 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 #1

; 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 #1

; 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: mustprogress nounwind uwtable
declare dso_local void @_ZN6b2Vec23SetEff(ptr noundef nonnull align 4 dereferenceable(8), float noundef, float noundef) 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

; 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> @_ZmlfRK6b2Vec2(float noundef, ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #1

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

; 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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #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 = { 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 96}
!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 184}
!27 = !{!"_ZTS15b2DistanceJoint", !6, i64 0, !22, i64 128, !22, i64 132, !22, i64 136, !22, i64 140, !22, i64 144, !22, i64 148, !21, i64 152, !21, i64 160, !22, i64 168, !22, i64 172, !22, i64 176, !22, i64 180, !12, i64 184, !12, i64 188, !21, i64 192, !21, i64 200, !21, i64 208, !21, i64 216, !21, i64 224, !22, i64 232, !22, i64 236, !22, i64 240, !22, i64 244, !22, i64 248, !22, i64 252, !22, i64 256}
!28 = !{!6, !10, i64 104}
!29 = !{!27, !12, i64 188}
!30 = !{!17, !22, i64 172}
!31 = !{!27, !22, i64 236}
!32 = !{!27, !22, i64 240}
!33 = !{!17, !22, i64 180}
!34 = !{!27, !22, i64 244}
!35 = !{!27, !22, i64 248}
!36 = !{!37, !10, i64 32}
!37 = !{!"_ZTS12b2SolverData", !38, i64 0, !10, i64 32, !10, i64 40}
!38 = !{!"_ZTS10b2TimeStep", !22, i64 0, !22, i64 4, !22, i64 8, !12, i64 12, !12, i64 16, !12, i64 20, !13, i64 24}
!39 = !{!40, !22, i64 8}
!40 = !{!"_ZTS10b2Position", !21, i64 0, !22, i64 8}
!41 = !{!37, !10, i64 40}
!42 = !{!43, !22, i64 8}
!43 = !{!"_ZTS10b2Velocity", !21, i64 0, !22, i64 8}
!44 = !{!27, !22, i64 232}
!45 = !{!27, !22, i64 256}
!46 = !{!22, !22, i64 0}
!47 = !{!27, !22, i64 180}
!48 = !{!27, !22, i64 128}
!49 = !{!27, !22, i64 144}
!50 = !{!27, !22, i64 148}
!51 = !{!27, !22, i64 140}
!52 = !{!27, !22, i64 132}
!53 = !{!37, !22, i64 0}
!54 = !{!27, !22, i64 168}
!55 = !{!27, !22, i64 136}
!56 = !{!27, !22, i64 252}
!57 = !{!37, !13, i64 24}
!58 = !{i8 0, i8 2}
!59 = !{}
!60 = !{!37, !22, i64 8}
!61 = !{!27, !22, i64 172}


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