; LLVM IR from erincatto/box2d :: src (body)

; 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.b2BodyId = type { i32, i16, i16 }
%struct.b2Vec2 = type { float, float }
%struct.b2Body = type { [32 x i8], ptr, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, float, float, float, float, i32, i32, i32, i16, i8, i8, i8, i8 }
%struct.b2World = type { %struct.b2ArenaAllocator, %struct.b2BroadPhase, %struct.b2ConstraintGraph, %struct.b2IdPool, %struct.b2BodyArray, %struct.b2IdPool, %struct.b2SolverSetArray, %struct.b2IdPool, %struct.b2JointArray, %struct.b2IdPool, %struct.b2ContactArray, %struct.b2IdPool, %struct.b2IslandArray, %struct.b2IdPool, %struct.b2IdPool, %struct.b2ShapeArray, %struct.b2ChainShapeArray, %struct.b2SensorArray, %struct.b2TaskContextArray, %struct.b2SensorTaskContextArray, %struct.b2BodyMoveEventArray, %struct.b2SensorBeginTouchEventArray, %struct.b2ContactBeginTouchEventArray, [2 x %struct.b2SensorEndTouchEventArray], [2 x %struct.b2ContactEndTouchEventArray], i32, %struct.b2ContactHitEventArray, %struct.b2BitSet, %struct.b2BitSet, %struct.b2BitSet, %struct.b2BitSet, i64, i32, %struct.b2Vec2, float, float, float, float, float, float, float, float, ptr, ptr, i16, %struct.b2Profile, ptr, ptr, ptr, ptr, i32, ptr, ptr, ptr, ptr, ptr, float, i32, i32, i16, i8, i8, i8, i8, i8, i8 }
%struct.b2ArenaAllocator = type { ptr, i32, i32, i32, i32, %struct.b2ArenaEntryArray }
%struct.b2ArenaEntryArray = type { ptr, i32, i32 }
%struct.b2BroadPhase = type { [3 x %struct.b2DynamicTree], i32, %struct.b2HashSet, %struct.b2IntArray, ptr, ptr, i32, %struct.b2AtomicInt, %struct.b2HashSet }
%struct.b2DynamicTree = type { ptr, i32, i32, i32, i32, i32, ptr, ptr, ptr, ptr, i32 }
%struct.b2IntArray = type { ptr, i32, i32 }
%struct.b2AtomicInt = type { i32 }
%struct.b2HashSet = type { ptr, i32, i32 }
%struct.b2ConstraintGraph = type { [12 x %struct.b2GraphColor] }
%struct.b2GraphColor = type { %struct.b2BitSet, %struct.b2ContactSimArray, %struct.b2JointSimArray, %union.anon }
%struct.b2ContactSimArray = type { ptr, i32, i32 }
%struct.b2JointSimArray = type { ptr, i32, i32 }
%union.anon = type { ptr }
%struct.b2BodyArray = type { ptr, i32, i32 }
%struct.b2SolverSetArray = type { ptr, i32, i32 }
%struct.b2JointArray = type { ptr, i32, i32 }
%struct.b2ContactArray = type { ptr, i32, i32 }
%struct.b2IslandArray = type { ptr, i32, i32 }
%struct.b2IdPool = type { %struct.b2IntArray, i32 }
%struct.b2ShapeArray = type { ptr, i32, i32 }
%struct.b2ChainShapeArray = type { ptr, i32, i32 }
%struct.b2SensorArray = type { ptr, i32, i32 }
%struct.b2TaskContextArray = type { ptr, i32, i32 }
%struct.b2SensorTaskContextArray = type { ptr, i32, i32 }
%struct.b2BodyMoveEventArray = type { ptr, i32, i32 }
%struct.b2SensorBeginTouchEventArray = type { ptr, i32, i32 }
%struct.b2ContactBeginTouchEventArray = type { ptr, i32, i32 }
%struct.b2SensorEndTouchEventArray = type { ptr, i32, i32 }
%struct.b2ContactEndTouchEventArray = type { ptr, i32, i32 }
%struct.b2ContactHitEventArray = type { ptr, i32, i32 }
%struct.b2BitSet = type { ptr, i32, i32 }
%struct.b2Profile = type { float, float, float, float, float, float, float, float, float, float, float, float, float, float, float, float, float, float, float, float, float, float }
%struct.b2SolverSet = type { %struct.b2BodySimArray, %struct.b2BodyStateArray, %struct.b2JointSimArray, %struct.b2ContactSimArray, %struct.b2IslandSimArray, i32 }
%struct.b2BodySimArray = type { ptr, i32, i32 }
%struct.b2BodyStateArray = type { ptr, i32, i32 }
%struct.b2IslandSimArray = type { ptr, i32, i32 }
%struct.b2BodyState = type { %struct.b2Vec2, float, i32, %struct.b2Vec2, %struct.b2Rot }
%struct.b2Rot = type { float, float }
%struct.b2BodySim = type { %struct.b2Transform, %struct.b2Vec2, %struct.b2Rot, %struct.b2Vec2, %struct.b2Vec2, %struct.b2Vec2, float, float, float, float, float, float, float, float, i32, i8, i8, i8, i8, i8 }
%struct.b2Transform = type { %struct.b2Vec2, %struct.b2Rot }

; Function Attrs: nounwind uwtable
declare dso_local ptr @b2GetBodyFullId(ptr noundef, i64) #0

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden ptr @b2SolverSetArray_Get(ptr noundef, i32 noundef) #2

; Function Attrs: inlinehint nounwind uwtable
declare hidden ptr @b2BodySimArray_Get(ptr noundef, i32 noundef) #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) #3

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden ptr @b2BodyStateArray_Get(ptr noundef, i32 noundef) #2

; Function Attrs: nounwind uwtable
declare dso_local zeroext i1 @b2WakeBody(ptr noundef, ptr noundef) #0

; Function Attrs: inlinehint nounwind uwtable
declare hidden <2 x float> @b2MulAdd(<2 x float>, float noundef, <2 x float>) #4

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden <2 x float> @b2Sub(<2 x float>, <2 x float>) #4

declare ptr @b2GetWorld(i32 noundef) #6

; Function Attrs: inlinehint nounwind uwtable
declare hidden float @b2Cross(<2 x float>, <2 x float>) #4

; Function Attrs: nounwind uwtable
define dso_local void @b2Body_ApplyLinearImpulse(i64 %0, <2 x float> %1, <2 x float> %2, i1 noundef zeroext %3) #7 {
  %5 = alloca %struct.b2BodyId, align 4
  %6 = alloca %struct.b2Vec2, align 4
  %7 = alloca %struct.b2Vec2, align 4
  %8 = alloca i8, align 1
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca %struct.b2Vec2, align 4
  %16 = alloca %struct.b2Vec2, align 4
  store i64 %0, ptr %5, align 4
  store <2 x float> %1, ptr %6, align 4
  store <2 x float> %2, ptr %7, align 4
  %17 = zext i1 %3 to i8
  store i8 %17, ptr %8, align 1, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #8
  %18 = getelementptr inbounds %struct.b2BodyId, ptr %5, i32 0, i32 1
  %19 = load i16, ptr %18, align 4, !tbaa !9
  %20 = zext i16 %19 to i32
  %21 = call ptr @b2GetWorld(i32 noundef %20)
  store ptr %21, ptr %9, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #8
  %22 = load ptr, ptr %9, align 8, !tbaa !13
  %23 = load i64, ptr %5, align 4
  %24 = call ptr @b2GetBodyFullId(ptr noundef %22, i64 %23)
  store ptr %24, ptr %10, align 8, !tbaa !13
  %25 = load i8, ptr %8, align 1, !tbaa !5, !range !15, !noundef !16
  %26 = trunc i8 %25 to i1
  br i1 %26, label %27, label %36

27:                                               ; preds = %4
  %28 = load ptr, ptr %10, align 8, !tbaa !13
  %29 = getelementptr inbounds %struct.b2Body, ptr %28, i32 0, i32 2
  %30 = load i32, ptr %29, align 8, !tbaa !17
  %31 = icmp sge i32 %30, 3
  br i1 %31, label %32, label %36

32:                                               ; preds = %27
  %33 = load ptr, ptr %9, align 8, !tbaa !13
  %34 = load ptr, ptr %10, align 8, !tbaa !13
  %35 = call zeroext i1 @b2WakeBody(ptr noundef %33, ptr noundef %34)
  br label %36

36:                                               ; preds = %32, %27, %4
  %37 = load ptr, ptr %10, align 8, !tbaa !13
  %38 = getelementptr inbounds %struct.b2Body, ptr %37, i32 0, i32 2
  %39 = load i32, ptr %38, align 8, !tbaa !17
  %40 = icmp eq i32 %39, 2
  br i1 %40, label %41, label %81

41:                                               ; preds = %36
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #8
  %42 = load ptr, ptr %10, align 8, !tbaa !13
  %43 = getelementptr inbounds %struct.b2Body, ptr %42, i32 0, i32 3
  %44 = load i32, ptr %43, align 4, !tbaa !20
  store i32 %44, ptr %11, align 4, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #8
  %45 = load ptr, ptr %9, align 8, !tbaa !13
  %46 = getelementptr inbounds %struct.b2World, ptr %45, i32 0, i32 6
  %47 = call ptr @b2SolverSetArray_Get(ptr noundef %46, i32 noundef 2)
  store ptr %47, ptr %12, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #8
  %48 = load ptr, ptr %12, align 8, !tbaa !13
  %49 = getelementptr inbounds %struct.b2SolverSet, ptr %48, i32 0, i32 1
  %50 = load i32, ptr %11, align 4, !tbaa !21
  %51 = call ptr @b2BodyStateArray_Get(ptr noundef %49, i32 noundef %50)
  store ptr %51, ptr %13, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #8
  %52 = load ptr, ptr %12, align 8, !tbaa !13
  %53 = getelementptr inbounds %struct.b2SolverSet, ptr %52, i32 0, i32 0
  %54 = load i32, ptr %11, align 4, !tbaa !21
  %55 = call ptr @b2BodySimArray_Get(ptr noundef %53, i32 noundef %54)
  store ptr %55, ptr %14, align 8, !tbaa !13
  %56 = load ptr, ptr %13, align 8, !tbaa !13
  %57 = getelementptr inbounds %struct.b2BodyState, ptr %56, i32 0, i32 0
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #8
  %58 = load ptr, ptr %13, align 8, !tbaa !13
  %59 = getelementptr inbounds %struct.b2BodyState, ptr %58, i32 0, i32 0
  %60 = load ptr, ptr %14, align 8, !tbaa !13
  %61 = getelementptr inbounds %struct.b2BodySim, ptr %60, i32 0, i32 7
  %62 = load float, ptr %61, align 4, !tbaa !22
  %63 = load <2 x float>, ptr %59, align 4
  %64 = load <2 x float>, ptr %6, align 4
  %65 = call <2 x float> @b2MulAdd(<2 x float> %63, float noundef %62, <2 x float> %64)
  store <2 x float> %65, ptr %15, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %57, ptr align 4 %15, i64 8, i1 false), !tbaa.struct !27
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #8
  %66 = load ptr, ptr %14, align 8, !tbaa !13
  %67 = getelementptr inbounds %struct.b2BodySim, ptr %66, i32 0, i32 8
  %68 = load float, ptr %67, align 4, !tbaa !29
  %69 = load ptr, ptr %14, align 8, !tbaa !13
  %70 = getelementptr inbounds %struct.b2BodySim, ptr %69, i32 0, i32 1
  %71 = load <2 x float>, ptr %7, align 4
  %72 = load <2 x float>, ptr %70, align 4
  %73 = call <2 x float> @b2Sub(<2 x float> %71, <2 x float> %72)
  store <2 x float> %73, ptr %16, align 4
  %74 = load <2 x float>, ptr %16, align 4
  %75 = load <2 x float>, ptr %6, align 4
  %76 = call float @b2Cross(<2 x float> %74, <2 x float> %75)
  %77 = load ptr, ptr %13, align 8, !tbaa !13
  %78 = getelementptr inbounds %struct.b2BodyState, ptr %77, i32 0, i32 1
  %79 = load float, ptr %78, align 4, !tbaa !30
  %80 = call float @llvm.fmuladd.f32(float %68, float %76, float %79)
  store float %80, ptr %78, align 4, !tbaa !30
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #8
  br label %81

81:                                               ; preds = %41, %36
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #8
  ret void
}

attributes #0 = { 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { inlinehint nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { inlinehint nounwind uwtable "min-legal-vector-width"="64" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #6 = { "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 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 = !{!"_Bool", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !12, i64 4}
!10 = !{!"b2BodyId", !11, i64 0, !12, i64 4, !12, i64 6}
!11 = !{!"int", !7, i64 0}
!12 = !{!"short", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"any pointer", !7, i64 0}
!15 = !{i8 0, i8 2}
!16 = !{}
!17 = !{!18, !11, i64 40}
!18 = !{!"b2Body", !7, i64 0, !14, i64 32, !11, i64 40, !11, i64 44, !11, i64 48, !11, i64 52, !11, i64 56, !11, i64 60, !11, i64 64, !11, i64 68, !11, i64 72, !11, i64 76, !11, i64 80, !11, i64 84, !19, i64 88, !19, i64 92, !19, i64 96, !19, i64 100, !11, i64 104, !11, i64 108, !11, i64 112, !12, i64 116, !6, i64 118, !6, i64 119, !6, i64 120, !6, i64 121}
!19 = !{!"float", !7, i64 0}
!20 = !{!18, !11, i64 44}
!21 = !{!11, !11, i64 0}
!22 = !{!23, !19, i64 60}
!23 = !{!"b2BodySim", !24, i64 0, !25, i64 16, !26, i64 24, !25, i64 32, !25, i64 40, !25, i64 48, !19, i64 56, !19, i64 60, !19, i64 64, !19, i64 68, !19, i64 72, !19, i64 76, !19, i64 80, !19, i64 84, !11, i64 88, !6, i64 92, !6, i64 93, !6, i64 94, !6, i64 95, !6, i64 96}
!24 = !{!"b2Transform", !25, i64 0, !26, i64 8}
!25 = !{!"b2Vec2", !19, i64 0, !19, i64 4}
!26 = !{!"b2Rot", !19, i64 0, !19, i64 4}
!27 = !{i64 0, i64 4, !28, i64 4, i64 4, !28}
!28 = !{!19, !19, i64 0}
!29 = !{!23, !19, i64 64}
!30 = !{!31, !19, i64 8}
!31 = !{!"b2BodyState", !25, i64 0, !19, i64 8, !11, i64 12, !25, i64 16, !26, i64 24}


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

; Function Attrs: nounwind uwtable
declare dso_local ptr @b2GetBodyFullId(ptr noundef, i64) local_unnamed_addr #0

; Function Attrs: inlinehint nounwind uwtable
declare hidden ptr @b2SolverSetArray_Get(ptr noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: inlinehint nounwind uwtable
declare hidden ptr @b2BodySimArray_Get(ptr noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: inlinehint nounwind uwtable
declare hidden ptr @b2BodyStateArray_Get(ptr noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare dso_local zeroext i1 @b2WakeBody(ptr noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: inlinehint nounwind uwtable
declare hidden <2 x float> @b2MulAdd(<2 x float>, float noundef, <2 x float>) local_unnamed_addr #2

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden <2 x float> @b2Sub(<2 x float>, <2 x float>) local_unnamed_addr #2

declare ptr @b2GetWorld(i32 noundef) local_unnamed_addr #4

; Function Attrs: inlinehint nounwind uwtable
declare hidden float @b2Cross(<2 x float>, <2 x float>) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
define dso_local void @b2Body_ApplyLinearImpulse(i64 %0, <2 x float> %1, <2 x float> %2, i1 noundef zeroext %3) local_unnamed_addr #5 {
  %.sroa.2.0.extract.shift = lshr i64 %0, 32
  %5 = trunc nuw i64 %.sroa.2.0.extract.shift to i32
  %6 = and i32 %5, 65535
  %7 = tail call ptr @b2GetWorld(i32 noundef %6) #6
  %8 = tail call ptr @b2GetBodyFullId(ptr noundef %7, i64 %0)
  br i1 %3, label %9, label %15

9:                                                ; preds = %4
  %10 = getelementptr inbounds i8, ptr %8, i64 40
  %11 = load i32, ptr %10, align 8, !tbaa !5
  %12 = icmp sgt i32 %11, 2
  br i1 %12, label %13, label %15

13:                                               ; preds = %9
  %14 = tail call zeroext i1 @b2WakeBody(ptr noundef %7, ptr noundef nonnull %8)
  br label %15

15:                                               ; preds = %13, %9, %4
  %16 = getelementptr inbounds i8, ptr %8, i64 40
  %17 = load i32, ptr %16, align 8, !tbaa !5
  %18 = icmp eq i32 %17, 2
  br i1 %18, label %19, label %40

19:                                               ; preds = %15
  %20 = getelementptr inbounds i8, ptr %8, i64 44
  %21 = load i32, ptr %20, align 4, !tbaa !14
  %22 = getelementptr inbounds i8, ptr %7, i64 1072
  %23 = tail call ptr @b2SolverSetArray_Get(ptr noundef nonnull %22, i32 noundef 2)
  %24 = getelementptr inbounds i8, ptr %23, i64 16
  %25 = tail call ptr @b2BodyStateArray_Get(ptr noundef nonnull %24, i32 noundef %21)
  %26 = tail call ptr @b2BodySimArray_Get(ptr noundef %23, i32 noundef %21)
  %27 = getelementptr inbounds i8, ptr %26, i64 60
  %28 = load float, ptr %27, align 4, !tbaa !15
  %29 = load <2 x float>, ptr %25, align 4
  %30 = tail call <2 x float> @b2MulAdd(<2 x float> %29, float noundef %28, <2 x float> %1)
  store <2 x float> %30, ptr %25, align 4
  %31 = getelementptr inbounds i8, ptr %26, i64 64
  %32 = load float, ptr %31, align 4, !tbaa !20
  %33 = getelementptr inbounds i8, ptr %26, i64 16
  %34 = load <2 x float>, ptr %33, align 4
  %35 = tail call <2 x float> @b2Sub(<2 x float> %2, <2 x float> %34)
  %36 = tail call float @b2Cross(<2 x float> %35, <2 x float> %1)
  %37 = getelementptr inbounds i8, ptr %25, i64 8
  %38 = load float, ptr %37, align 4, !tbaa !21
  %39 = tail call float @llvm.fmuladd.f32(float %32, float %36, float %38)
  store float %39, ptr %37, align 4, !tbaa !21
  br label %40

40:                                               ; preds = %19, %15
  ret void
}

attributes #0 = { 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 #1 = { inlinehint nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { inlinehint nounwind uwtable "min-legal-vector-width"="64" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nounwind 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 #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 40}
!6 = !{!"b2Body", !7, i64 0, !9, i64 32, !10, i64 40, !10, i64 44, !10, i64 48, !10, i64 52, !10, i64 56, !10, i64 60, !10, i64 64, !10, i64 68, !10, i64 72, !10, i64 76, !10, i64 80, !10, i64 84, !11, i64 88, !11, i64 92, !11, i64 96, !11, i64 100, !10, i64 104, !10, i64 108, !10, i64 112, !12, i64 116, !13, i64 118, !13, i64 119, !13, i64 120, !13, i64 121}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!"any pointer", !7, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!"float", !7, i64 0}
!12 = !{!"short", !7, i64 0}
!13 = !{!"_Bool", !7, i64 0}
!14 = !{!6, !10, i64 44}
!15 = !{!16, !11, i64 60}
!16 = !{!"b2BodySim", !17, i64 0, !18, i64 16, !19, i64 24, !18, i64 32, !18, i64 40, !18, i64 48, !11, i64 56, !11, i64 60, !11, i64 64, !11, i64 68, !11, i64 72, !11, i64 76, !11, i64 80, !11, i64 84, !10, i64 88, !13, i64 92, !13, i64 93, !13, i64 94, !13, i64 95, !13, i64 96}
!17 = !{!"b2Transform", !18, i64 0, !19, i64 8}
!18 = !{!"b2Vec2", !11, i64 0, !11, i64 4}
!19 = !{!"b2Rot", !11, i64 0, !11, i64 4}
!20 = !{!16, !11, i64 64}
!21 = !{!22, !11, i64 8}
!22 = !{!"b2BodyState", !18, i64 0, !11, i64 8, !10, i64 12, !18, i64 16, !19, i64 24}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,SROAPass,TailCallElimPass