; LLVM IR from erincatto/box2d :: src (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.b2JointId = type { i32, i16, i16 }
%struct.b2WorldId = type { i16, i16 }
%struct.b2JointPair = type { ptr, ptr }
%struct.b2PrismaticJoint = type { %struct.b2Vec2, %struct.b2Vec2, float, float, float, float, float, float, float, float, float, float, float, i32, i32, %struct.b2Vec2, %struct.b2Vec2, %struct.b2Vec2, %struct.b2Vec2, float, float, %struct.b2Softness, i8, i8, i8 }
%struct.b2Softness = type { float, float, float }
%struct.b2PrismaticJointDef = type { %struct.b2BodyId, %struct.b2BodyId, %struct.b2Vec2, %struct.b2Vec2, %struct.b2Vec2, float, i8, float, float, i8, float, float, i8, float, float, i8, ptr, i32 }
%struct.b2BodyId = type { i32, i16, i16 }
%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.b2JointSim = type { i32, i32, i32, i32, %struct.b2Vec2, %struct.b2Vec2, float, float, float, float, %union.anon.0 }
%union.anon.0 = type { %struct.b2PrismaticJoint }
%struct.b2Joint = type { ptr, i32, i32, i32, [2 x %struct.b2JointEdge], i32, i32, i32, i32, float, i32, i16, i8, i8 }
%struct.b2JointEdge = type { i32, i32, i32 }

@.str.1 = external hidden unnamed_addr constant [61 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [39 x i8], align 1
@b2Vec2_zero = external hidden constant %struct.b2Vec2, align 4
@.str.13 = external hidden unnamed_addr constant [47 x i8], align 1

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #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.start.p0(i64 immarg, ptr nocapture) #2

declare i32 @b2InternalAssertFcn(ptr noundef, ptr noundef, i32 noundef) #3

; Function Attrs: cold noreturn nounwind memory(inaccessiblemem: write)
declare void @llvm.trap() #4

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

declare ptr @b2GetWorldFromId(i32) #3

declare ptr @b2GetBodyFullId(ptr noundef, i64) #3

; Function Attrs: nounwind uwtable
declare hidden { ptr, ptr } @b2CreateJoint(ptr noundef, ptr noundef, ptr noundef, ptr noundef, float noundef, i32 noundef, i1 noundef zeroext) #5

; Function Attrs: nounwind uwtable
declare hidden void @b2DestroyContactsBetweenBodies(ptr noundef, ptr noundef, ptr noundef) #5

; Function Attrs: nounwind uwtable
define dso_local i64 @b2CreatePrismaticJoint(i32 %0, ptr noundef %1) #6 {
  %3 = alloca %struct.b2JointId, align 4
  %4 = alloca %struct.b2WorldId, align 2
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca %struct.b2JointPair, align 8
  %11 = alloca ptr, align 8
  %12 = alloca %struct.b2PrismaticJoint, align 4
  %13 = alloca %struct.b2Vec2, align 4
  store i32 %0, ptr %4, align 2
  store ptr %1, ptr %5, align 8, !tbaa !5
  br label %14

14:                                               ; preds = %2
  %15 = load ptr, ptr %5, align 8, !tbaa !5
  %16 = getelementptr inbounds %struct.b2PrismaticJointDef, ptr %15, i32 0, i32 17
  %17 = load i32, ptr %16, align 8, !tbaa !9
  %18 = icmp eq i32 %17, 1152023
  br i1 %18, label %23, label %19

19:                                               ; preds = %14
  %20 = call i32 @b2InternalAssertFcn(ptr noundef @.str.6, ptr noundef @.str.1, i32 noundef 558)
  %21 = icmp ne i32 %20, 0
  br i1 %21, label %22, label %23

22:                                               ; preds = %19
  call void @llvm.trap()
  br label %23

23:                                               ; preds = %22, %19, %14
  br label %24

24:                                               ; preds = %23
  br label %25

25:                                               ; preds = %24
  %26 = load ptr, ptr %5, align 8, !tbaa !5
  %27 = getelementptr inbounds %struct.b2PrismaticJointDef, ptr %26, i32 0, i32 10
  %28 = load float, ptr %27, align 4, !tbaa !17
  %29 = load ptr, ptr %5, align 8, !tbaa !5
  %30 = getelementptr inbounds %struct.b2PrismaticJointDef, ptr %29, i32 0, i32 11
  %31 = load float, ptr %30, align 8, !tbaa !18
  %32 = fcmp ole float %28, %31
  br i1 %32, label %37, label %33

33:                                               ; preds = %25
  %34 = call i32 @b2InternalAssertFcn(ptr noundef @.str.13, ptr noundef @.str.1, i32 noundef 559)
  %35 = icmp ne i32 %34, 0
  br i1 %35, label %36, label %37

36:                                               ; preds = %33
  call void @llvm.trap()
  br label %37

37:                                               ; preds = %36, %33, %25
  br label %38

38:                                               ; preds = %37
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #8
  %39 = load i32, ptr %4, align 2
  %40 = call ptr @b2GetWorldFromId(i32 %39)
  store ptr %40, ptr %6, align 8, !tbaa !5
  br label %41

41:                                               ; preds = %38
  %42 = load ptr, ptr %6, align 8, !tbaa !5
  %43 = getelementptr inbounds %struct.b2World, ptr %42, i32 0, i32 61
  %44 = load i8, ptr %43, align 1, !tbaa !19, !range !31, !noundef !32
  %45 = trunc i8 %44 to i1
  %46 = zext i1 %45 to i32
  %47 = icmp eq i32 %46, 0
  br i1 %47, label %52, label %48

48:                                               ; preds = %41
  %49 = call i32 @b2InternalAssertFcn(ptr noundef @.str.3, ptr noundef @.str.1, i32 noundef 563)
  %50 = icmp ne i32 %49, 0
  br i1 %50, label %51, label %52

51:                                               ; preds = %48
  call void @llvm.trap()
  br label %52

52:                                               ; preds = %51, %48, %41
  br label %53

53:                                               ; preds = %52
  br label %54

54:                                               ; preds = %53
  %55 = load ptr, ptr %6, align 8, !tbaa !5
  %56 = getelementptr inbounds %struct.b2World, ptr %55, i32 0, i32 61
  %57 = load i8, ptr %56, align 1, !tbaa !19, !range !31, !noundef !32
  %58 = trunc i8 %57 to i1
  br i1 %58, label %59, label %63

59:                                               ; preds = %54
  %60 = getelementptr inbounds %struct.b2JointId, ptr %3, i32 0, i32 0
  store i32 0, ptr %60, align 4, !tbaa !33
  %61 = getelementptr inbounds %struct.b2JointId, ptr %3, i32 0, i32 1
  store i16 0, ptr %61, align 4, !tbaa !35
  %62 = getelementptr inbounds %struct.b2JointId, ptr %3, i32 0, i32 2
  store i16 0, ptr %62, align 2, !tbaa !36
  store i32 1, ptr %7, align 4
  br label %219

63:                                               ; preds = %54
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #8
  %64 = load ptr, ptr %6, align 8, !tbaa !5
  %65 = load ptr, ptr %5, align 8, !tbaa !5
  %66 = getelementptr inbounds %struct.b2PrismaticJointDef, ptr %65, i32 0, i32 0
  %67 = load i64, ptr %66, align 8
  %68 = call ptr @b2GetBodyFullId(ptr noundef %64, i64 %67)
  store ptr %68, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #8
  %69 = load ptr, ptr %6, align 8, !tbaa !5
  %70 = load ptr, ptr %5, align 8, !tbaa !5
  %71 = getelementptr inbounds %struct.b2PrismaticJointDef, ptr %70, i32 0, i32 1
  %72 = load i64, ptr %71, align 8
  %73 = call ptr @b2GetBodyFullId(ptr noundef %69, i64 %72)
  store ptr %73, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %10) #8
  %74 = load ptr, ptr %6, align 8, !tbaa !5
  %75 = load ptr, ptr %8, align 8, !tbaa !5
  %76 = load ptr, ptr %9, align 8, !tbaa !5
  %77 = load ptr, ptr %5, align 8, !tbaa !5
  %78 = getelementptr inbounds %struct.b2PrismaticJointDef, ptr %77, i32 0, i32 16
  %79 = load ptr, ptr %78, align 8, !tbaa !37
  %80 = load ptr, ptr %5, align 8, !tbaa !5
  %81 = getelementptr inbounds %struct.b2PrismaticJointDef, ptr %80, i32 0, i32 15
  %82 = load i8, ptr %81, align 8, !tbaa !38, !range !31, !noundef !32
  %83 = trunc i8 %82 to i1
  %84 = call { ptr, ptr } @b2CreateJoint(ptr noundef %74, ptr noundef %75, ptr noundef %76, ptr noundef %79, float noundef 1.000000e+00, i32 noundef 4, i1 noundef zeroext %83)
  %85 = getelementptr inbounds { ptr, ptr }, ptr %10, i32 0, i32 0
  %86 = extractvalue { ptr, ptr } %84, 0
  store ptr %86, ptr %85, align 8
  %87 = getelementptr inbounds { ptr, ptr }, ptr %10, i32 0, i32 1
  %88 = extractvalue { ptr, ptr } %84, 1
  store ptr %88, ptr %87, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #8
  %89 = getelementptr inbounds %struct.b2JointPair, ptr %10, i32 0, i32 1
  %90 = load ptr, ptr %89, align 8, !tbaa !39
  store ptr %90, ptr %11, align 8, !tbaa !5
  %91 = load ptr, ptr %11, align 8, !tbaa !5
  %92 = getelementptr inbounds %struct.b2JointSim, ptr %91, i32 0, i32 3
  store i32 4, ptr %92, align 4, !tbaa !41
  %93 = load ptr, ptr %11, align 8, !tbaa !5
  %94 = getelementptr inbounds %struct.b2JointSim, ptr %93, i32 0, i32 4
  %95 = load ptr, ptr %5, align 8, !tbaa !5
  %96 = getelementptr inbounds %struct.b2PrismaticJointDef, ptr %95, i32 0, i32 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %94, ptr align 8 %96, i64 8, i1 false), !tbaa.struct !43
  %97 = load ptr, ptr %11, align 8, !tbaa !5
  %98 = getelementptr inbounds %struct.b2JointSim, ptr %97, i32 0, i32 5
  %99 = load ptr, ptr %5, align 8, !tbaa !5
  %100 = getelementptr inbounds %struct.b2PrismaticJointDef, ptr %99, i32 0, i32 3
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %98, ptr align 8 %100, i64 8, i1 false), !tbaa.struct !43
  call void @llvm.lifetime.start.p0(i64 124, ptr %12) #8
  call void @llvm.memset.p0.i64(ptr align 4 %12, i8 0, i64 124, i1 false)
  %101 = load ptr, ptr %11, align 8, !tbaa !5
  %102 = getelementptr inbounds %struct.b2JointSim, ptr %101, i32 0, i32 10
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %102, ptr align 4 %12, i64 124, i1 false), !tbaa.struct !45
  %103 = load ptr, ptr %11, align 8, !tbaa !5
  %104 = getelementptr inbounds %struct.b2JointSim, ptr %103, i32 0, i32 10
  %105 = getelementptr inbounds %struct.b2PrismaticJoint, ptr %104, i32 0, i32 0
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #8
  %106 = load ptr, ptr %5, align 8, !tbaa !5
  %107 = getelementptr inbounds %struct.b2PrismaticJointDef, ptr %106, i32 0, i32 4
  %108 = load <2 x float>, ptr %107, align 8
  %109 = call <2 x float> @b2Normalize(<2 x float> %108)
  store <2 x float> %109, ptr %13, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %105, ptr align 4 %13, i64 8, i1 false), !tbaa.struct !43
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #8
  %110 = load ptr, ptr %5, align 8, !tbaa !5
  %111 = getelementptr inbounds %struct.b2PrismaticJointDef, ptr %110, i32 0, i32 5
  %112 = load float, ptr %111, align 8, !tbaa !48
  %113 = load ptr, ptr %11, align 8, !tbaa !5
  %114 = getelementptr inbounds %struct.b2JointSim, ptr %113, i32 0, i32 10
  %115 = getelementptr inbounds %struct.b2PrismaticJoint, ptr %114, i32 0, i32 10
  store float %112, ptr %115, align 4, !tbaa !49
  %116 = load ptr, ptr %11, align 8, !tbaa !5
  %117 = getelementptr inbounds %struct.b2JointSim, ptr %116, i32 0, i32 10
  %118 = getelementptr inbounds %struct.b2PrismaticJoint, ptr %117, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %118, ptr align 4 @b2Vec2_zero, i64 8, i1 false), !tbaa.struct !43
  %119 = load ptr, ptr %11, align 8, !tbaa !5
  %120 = getelementptr inbounds %struct.b2JointSim, ptr %119, i32 0, i32 10
  %121 = getelementptr inbounds %struct.b2PrismaticJoint, ptr %120, i32 0, i32 20
  store float 0.000000e+00, ptr %121, align 4, !tbaa !49
  %122 = load ptr, ptr %11, align 8, !tbaa !5
  %123 = getelementptr inbounds %struct.b2JointSim, ptr %122, i32 0, i32 10
  %124 = getelementptr inbounds %struct.b2PrismaticJoint, ptr %123, i32 0, i32 2
  store float 0.000000e+00, ptr %124, align 4, !tbaa !49
  %125 = load ptr, ptr %11, align 8, !tbaa !5
  %126 = getelementptr inbounds %struct.b2JointSim, ptr %125, i32 0, i32 10
  %127 = getelementptr inbounds %struct.b2PrismaticJoint, ptr %126, i32 0, i32 3
  store float 0.000000e+00, ptr %127, align 4, !tbaa !49
  %128 = load ptr, ptr %11, align 8, !tbaa !5
  %129 = getelementptr inbounds %struct.b2JointSim, ptr %128, i32 0, i32 10
  %130 = getelementptr inbounds %struct.b2PrismaticJoint, ptr %129, i32 0, i32 4
  store float 0.000000e+00, ptr %130, align 4, !tbaa !49
  %131 = load ptr, ptr %11, align 8, !tbaa !5
  %132 = getelementptr inbounds %struct.b2JointSim, ptr %131, i32 0, i32 10
  %133 = getelementptr inbounds %struct.b2PrismaticJoint, ptr %132, i32 0, i32 5
  store float 0.000000e+00, ptr %133, align 4, !tbaa !49
  %134 = load ptr, ptr %5, align 8, !tbaa !5
  %135 = getelementptr inbounds %struct.b2PrismaticJointDef, ptr %134, i32 0, i32 7
  %136 = load float, ptr %135, align 8, !tbaa !50
  %137 = load ptr, ptr %11, align 8, !tbaa !5
  %138 = getelementptr inbounds %struct.b2JointSim, ptr %137, i32 0, i32 10
  %139 = getelementptr inbounds %struct.b2PrismaticJoint, ptr %138, i32 0, i32 6
  store float %136, ptr %139, align 4, !tbaa !49
  %140 = load ptr, ptr %5, align 8, !tbaa !5
  %141 = getelementptr inbounds %struct.b2PrismaticJointDef, ptr %140, i32 0, i32 8
  %142 = load float, ptr %141, align 4, !tbaa !51
  %143 = load ptr, ptr %11, align 8, !tbaa !5
  %144 = getelementptr inbounds %struct.b2JointSim, ptr %143, i32 0, i32 10
  %145 = getelementptr inbounds %struct.b2PrismaticJoint, ptr %144, i32 0, i32 7
  store float %142, ptr %145, align 4, !tbaa !49
  %146 = load ptr, ptr %5, align 8, !tbaa !5
  %147 = getelementptr inbounds %struct.b2PrismaticJointDef, ptr %146, i32 0, i32 10
  %148 = load float, ptr %147, align 4, !tbaa !17
  %149 = load ptr, ptr %11, align 8, !tbaa !5
  %150 = getelementptr inbounds %struct.b2JointSim, ptr %149, i32 0, i32 10
  %151 = getelementptr inbounds %struct.b2PrismaticJoint, ptr %150, i32 0, i32 11
  store float %148, ptr %151, align 4, !tbaa !49
  %152 = load ptr, ptr %5, align 8, !tbaa !5
  %153 = getelementptr inbounds %struct.b2PrismaticJointDef, ptr %152, i32 0, i32 11
  %154 = load float, ptr %153, align 8, !tbaa !18
  %155 = load ptr, ptr %11, align 8, !tbaa !5
  %156 = getelementptr inbounds %struct.b2JointSim, ptr %155, i32 0, i32 10
  %157 = getelementptr inbounds %struct.b2PrismaticJoint, ptr %156, i32 0, i32 12
  store float %154, ptr %157, align 4, !tbaa !49
  %158 = load ptr, ptr %5, align 8, !tbaa !5
  %159 = getelementptr inbounds %struct.b2PrismaticJointDef, ptr %158, i32 0, i32 13
  %160 = load float, ptr %159, align 8, !tbaa !52
  %161 = load ptr, ptr %11, align 8, !tbaa !5
  %162 = getelementptr inbounds %struct.b2JointSim, ptr %161, i32 0, i32 10
  %163 = getelementptr inbounds %struct.b2PrismaticJoint, ptr %162, i32 0, i32 8
  store float %160, ptr %163, align 4, !tbaa !49
  %164 = load ptr, ptr %5, align 8, !tbaa !5
  %165 = getelementptr inbounds %struct.b2PrismaticJointDef, ptr %164, i32 0, i32 14
  %166 = load float, ptr %165, align 4, !tbaa !53
  %167 = load ptr, ptr %11, align 8, !tbaa !5
  %168 = getelementptr inbounds %struct.b2JointSim, ptr %167, i32 0, i32 10
  %169 = getelementptr inbounds %struct.b2PrismaticJoint, ptr %168, i32 0, i32 9
  store float %166, ptr %169, align 4, !tbaa !49
  %170 = load ptr, ptr %5, align 8, !tbaa !5
  %171 = getelementptr inbounds %struct.b2PrismaticJointDef, ptr %170, i32 0, i32 6
  %172 = load i8, ptr %171, align 4, !tbaa !54, !range !31, !noundef !32
  %173 = trunc i8 %172 to i1
  %174 = load ptr, ptr %11, align 8, !tbaa !5
  %175 = getelementptr inbounds %struct.b2JointSim, ptr %174, i32 0, i32 10
  %176 = getelementptr inbounds %struct.b2PrismaticJoint, ptr %175, i32 0, i32 22
  %177 = zext i1 %173 to i8
  store i8 %177, ptr %176, align 4, !tbaa !49
  %178 = load ptr, ptr %5, align 8, !tbaa !5
  %179 = getelementptr inbounds %struct.b2PrismaticJointDef, ptr %178, i32 0, i32 9
  %180 = load i8, ptr %179, align 8, !tbaa !55, !range !31, !noundef !32
  %181 = trunc i8 %180 to i1
  %182 = load ptr, ptr %11, align 8, !tbaa !5
  %183 = getelementptr inbounds %struct.b2JointSim, ptr %182, i32 0, i32 10
  %184 = getelementptr inbounds %struct.b2PrismaticJoint, ptr %183, i32 0, i32 23
  %185 = zext i1 %181 to i8
  store i8 %185, ptr %184, align 1, !tbaa !49
  %186 = load ptr, ptr %5, align 8, !tbaa !5
  %187 = getelementptr inbounds %struct.b2PrismaticJointDef, ptr %186, i32 0, i32 12
  %188 = load i8, ptr %187, align 4, !tbaa !56, !range !31, !noundef !32
  %189 = trunc i8 %188 to i1
  %190 = load ptr, ptr %11, align 8, !tbaa !5
  %191 = getelementptr inbounds %struct.b2JointSim, ptr %190, i32 0, i32 10
  %192 = getelementptr inbounds %struct.b2PrismaticJoint, ptr %191, i32 0, i32 24
  %193 = zext i1 %189 to i8
  store i8 %193, ptr %192, align 2, !tbaa !49
  %194 = load ptr, ptr %5, align 8, !tbaa !5
  %195 = getelementptr inbounds %struct.b2PrismaticJointDef, ptr %194, i32 0, i32 15
  %196 = load i8, ptr %195, align 8, !tbaa !38, !range !31, !noundef !32
  %197 = trunc i8 %196 to i1
  %198 = zext i1 %197 to i32
  %199 = icmp eq i32 %198, 0
  br i1 %199, label %200, label %204

200:                                              ; preds = %63
  %201 = load ptr, ptr %6, align 8, !tbaa !5
  %202 = load ptr, ptr %8, align 8, !tbaa !5
  %203 = load ptr, ptr %9, align 8, !tbaa !5
  call void @b2DestroyContactsBetweenBodies(ptr noundef %201, ptr noundef %202, ptr noundef %203)
  br label %204

204:                                              ; preds = %200, %63
  %205 = getelementptr inbounds %struct.b2JointId, ptr %3, i32 0, i32 0
  %206 = load ptr, ptr %11, align 8, !tbaa !5
  %207 = getelementptr inbounds %struct.b2JointSim, ptr %206, i32 0, i32 0
  %208 = load i32, ptr %207, align 4, !tbaa !57
  %209 = add nsw i32 %208, 1
  store i32 %209, ptr %205, align 4, !tbaa !33
  %210 = getelementptr inbounds %struct.b2JointId, ptr %3, i32 0, i32 1
  %211 = load ptr, ptr %6, align 8, !tbaa !5
  %212 = getelementptr inbounds %struct.b2World, ptr %211, i32 0, i32 59
  %213 = load i16, ptr %212, align 4, !tbaa !58
  store i16 %213, ptr %210, align 4, !tbaa !35
  %214 = getelementptr inbounds %struct.b2JointId, ptr %3, i32 0, i32 2
  %215 = getelementptr inbounds %struct.b2JointPair, ptr %10, i32 0, i32 0
  %216 = load ptr, ptr %215, align 8, !tbaa !59
  %217 = getelementptr inbounds %struct.b2Joint, ptr %216, i32 0, i32 11
  %218 = load i16, ptr %217, align 4, !tbaa !60
  store i16 %218, ptr %214, align 2, !tbaa !36
  store i32 1, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 124, ptr %12) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %10) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #8
  br label %219

219:                                              ; preds = %204, %59
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #8
  %220 = load i64, ptr %3, align 4
  ret i64 %220
}

; Function Attrs: inlinehint nounwind uwtable
declare hidden <2 x float> @b2Normalize(<2 x float>) #7

attributes #0 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { "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 = { cold noreturn nounwind memory(inaccessiblemem: write) }
attributes #5 = { 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 = { 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 #7 = { 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 #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/C++ TBAA"}
!9 = !{!10, !12, i64 96}
!10 = !{!"b2PrismaticJointDef", !11, i64 0, !11, i64 8, !14, i64 16, !14, i64 24, !14, i64 32, !15, i64 40, !16, i64 44, !15, i64 48, !15, i64 52, !16, i64 56, !15, i64 60, !15, i64 64, !16, i64 68, !15, i64 72, !15, i64 76, !16, i64 80, !6, i64 88, !12, i64 96}
!11 = !{!"b2BodyId", !12, i64 0, !13, i64 4, !13, i64 6}
!12 = !{!"int", !7, i64 0}
!13 = !{!"short", !7, i64 0}
!14 = !{!"b2Vec2", !15, i64 0, !15, i64 4}
!15 = !{!"float", !7, i64 0}
!16 = !{!"_Bool", !7, i64 0}
!17 = !{!10, !15, i64 60}
!18 = !{!10, !15, i64 64}
!19 = !{!20, !16, i64 1799}
!20 = !{!"b2World", !21, i64 0, !23, i64 40, !26, i64 336, !27, i64 1008, !22, i64 1032, !27, i64 1048, !22, i64 1072, !27, i64 1088, !22, i64 1112, !27, i64 1128, !22, i64 1152, !27, i64 1168, !22, i64 1192, !27, i64 1208, !27, i64 1232, !22, i64 1256, !22, i64 1272, !22, i64 1288, !22, i64 1304, !22, i64 1320, !22, i64 1336, !22, i64 1352, !22, i64 1368, !7, i64 1384, !7, i64 1416, !12, i64 1448, !22, i64 1456, !28, i64 1472, !28, i64 1488, !28, i64 1504, !28, i64 1520, !29, i64 1536, !12, i64 1544, !14, i64 1548, !15, i64 1556, !15, i64 1560, !15, i64 1564, !15, i64 1568, !15, i64 1572, !15, i64 1576, !15, i64 1580, !15, i64 1584, !6, i64 1592, !6, i64 1600, !13, i64 1608, !30, i64 1612, !6, i64 1704, !6, i64 1712, !6, i64 1720, !6, i64 1728, !12, i64 1736, !6, i64 1744, !6, i64 1752, !6, i64 1760, !6, i64 1768, !6, i64 1776, !15, i64 1784, !12, i64 1788, !12, i64 1792, !13, i64 1796, !16, i64 1798, !16, i64 1799, !16, i64 1800, !16, i64 1801, !16, i64 1802, !16, i64 1803}
!21 = !{!"b2ArenaAllocator", !6, i64 0, !12, i64 8, !12, i64 12, !12, i64 16, !12, i64 20, !22, i64 24}
!22 = !{!"", !6, i64 0, !12, i64 8, !12, i64 12}
!23 = !{!"b2BroadPhase", !7, i64 0, !12, i64 216, !24, i64 224, !22, i64 240, !6, i64 256, !6, i64 264, !12, i64 272, !25, i64 276, !24, i64 280}
!24 = !{!"b2HashSet", !6, i64 0, !12, i64 8, !12, i64 12}
!25 = !{!"b2AtomicInt", !12, i64 0}
!26 = !{!"b2ConstraintGraph", !7, i64 0}
!27 = !{!"b2IdPool", !22, i64 0, !12, i64 16}
!28 = !{!"b2BitSet", !6, i64 0, !12, i64 8, !12, i64 12}
!29 = !{!"long", !7, i64 0}
!30 = !{!"b2Profile", !15, i64 0, !15, i64 4, !15, i64 8, !15, i64 12, !15, i64 16, !15, i64 20, !15, i64 24, !15, i64 28, !15, i64 32, !15, i64 36, !15, i64 40, !15, i64 44, !15, i64 48, !15, i64 52, !15, i64 56, !15, i64 60, !15, i64 64, !15, i64 68, !15, i64 72, !15, i64 76, !15, i64 80, !15, i64 84}
!31 = !{i8 0, i8 2}
!32 = !{}
!33 = !{!34, !12, i64 0}
!34 = !{!"b2JointId", !12, i64 0, !13, i64 4, !13, i64 6}
!35 = !{!34, !13, i64 4}
!36 = !{!34, !13, i64 6}
!37 = !{!10, !6, i64 88}
!38 = !{!10, !16, i64 80}
!39 = !{!40, !6, i64 8}
!40 = !{!"b2JointPair", !6, i64 0, !6, i64 8}
!41 = !{!42, !12, i64 12}
!42 = !{!"b2JointSim", !12, i64 0, !12, i64 4, !12, i64 8, !12, i64 12, !14, i64 16, !14, i64 24, !15, i64 32, !15, i64 36, !15, i64 40, !15, i64 44, !7, i64 48}
!43 = !{i64 0, i64 4, !44, i64 4, i64 4, !44}
!44 = !{!15, !15, i64 0}
!45 = !{i64 0, i64 4, !44, i64 4, i64 4, !44, i64 8, i64 4, !44, i64 12, i64 4, !44, i64 16, i64 4, !44, i64 20, i64 4, !44, i64 24, i64 4, !44, i64 28, i64 4, !44, i64 32, i64 4, !44, i64 36, i64 4, !44, i64 40, i64 4, !44, i64 44, i64 4, !44, i64 48, i64 4, !44, i64 52, i64 4, !44, i64 56, i64 4, !44, i64 60, i64 4, !46, i64 64, i64 4, !46, i64 68, i64 4, !44, i64 72, i64 4, !44, i64 76, i64 4, !44, i64 80, i64 4, !44, i64 84, i64 4, !44, i64 88, i64 4, !44, i64 92, i64 4, !44, i64 96, i64 4, !44, i64 100, i64 4, !44, i64 104, i64 4, !44, i64 108, i64 4, !44, i64 112, i64 4, !44, i64 116, i64 4, !44, i64 120, i64 1, !47, i64 121, i64 1, !47, i64 122, i64 1, !47}
!46 = !{!12, !12, i64 0}
!47 = !{!16, !16, i64 0}
!48 = !{!10, !15, i64 40}
!49 = !{!7, !7, i64 0}
!50 = !{!10, !15, i64 48}
!51 = !{!10, !15, i64 52}
!52 = !{!10, !15, i64 72}
!53 = !{!10, !15, i64 76}
!54 = !{!10, !16, i64 44}
!55 = !{!10, !16, i64 56}
!56 = !{!10, !16, i64 68}
!57 = !{!42, !12, i64 0}
!58 = !{!20, !13, i64 1796}
!59 = !{!40, !6, i64 0}
!60 = !{!61, !13, i64 68}
!61 = !{!"b2Joint", !6, i64 0, !12, i64 8, !12, i64 12, !12, i64 16, !7, i64 20, !12, i64 44, !12, i64 48, !12, i64 52, !12, i64 56, !15, i64 60, !12, i64 64, !13, i64 68, !16, i64 70, !16, i64 71}


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

@.str.1 = external hidden unnamed_addr constant [61 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [39 x i8], align 1
@b2Vec2_zero = external hidden local_unnamed_addr constant %struct.b2Vec2, align 4
@.str.13 = external hidden unnamed_addr constant [47 x i8], align 1

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #0

declare i32 @b2InternalAssertFcn(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: cold noreturn nounwind memory(inaccessiblemem: write)
declare void @llvm.trap() #2

declare ptr @b2GetWorldFromId(i32) local_unnamed_addr #1

declare ptr @b2GetBodyFullId(ptr noundef, i64) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare hidden { ptr, ptr } @b2CreateJoint(ptr noundef, ptr noundef, ptr noundef, ptr noundef, float noundef, i32 noundef, i1 noundef zeroext) local_unnamed_addr #3

; Function Attrs: nounwind uwtable
declare hidden void @b2DestroyContactsBetweenBodies(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: nounwind uwtable
define dso_local i64 @b2CreatePrismaticJoint(i32 %0, ptr nocapture noundef readonly %1) local_unnamed_addr #4 {
  %3 = getelementptr inbounds i8, ptr %1, i64 96
  %4 = load i32, ptr %3, align 8, !tbaa !5
  %5 = icmp eq i32 %4, 1152023
  br i1 %5, label %9, label %6

6:                                                ; preds = %2
  %7 = tail call i32 @b2InternalAssertFcn(ptr noundef nonnull @.str.6, ptr noundef nonnull @.str.1, i32 noundef 558) #6
  %.not = icmp eq i32 %7, 0
  br i1 %.not, label %9, label %8

8:                                                ; preds = %6
  tail call void @llvm.trap()
  unreachable

9:                                                ; preds = %6, %2
  %10 = getelementptr inbounds i8, ptr %1, i64 60
  %11 = load float, ptr %10, align 4, !tbaa !16
  %12 = getelementptr inbounds i8, ptr %1, i64 64
  %13 = load float, ptr %12, align 8, !tbaa !17
  %14 = fcmp ugt float %11, %13
  br i1 %14, label %15, label %18

15:                                               ; preds = %9
  %16 = tail call i32 @b2InternalAssertFcn(ptr noundef nonnull @.str.13, ptr noundef nonnull @.str.1, i32 noundef 559) #6
  %.not57 = icmp eq i32 %16, 0
  br i1 %.not57, label %18, label %17

17:                                               ; preds = %15
  tail call void @llvm.trap()
  unreachable

18:                                               ; preds = %9, %15
  %19 = tail call ptr @b2GetWorldFromId(i32 %0) #6
  %20 = getelementptr inbounds i8, ptr %19, i64 1799
  %21 = load i8, ptr %20, align 1, !tbaa !18, !range !30, !noundef !31
  %22 = icmp eq i8 %21, 0
  br i1 %22, label %.thread, label %23

23:                                               ; preds = %18
  %24 = tail call i32 @b2InternalAssertFcn(ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.1, i32 noundef 563) #6
  %.not58 = icmp eq i32 %24, 0
  br i1 %.not58, label %26, label %25

25:                                               ; preds = %23
  tail call void @llvm.trap()
  unreachable

26:                                               ; preds = %23
  %.pre = load i8, ptr %20, align 1, !tbaa !18, !range !30
  %27 = trunc nuw i8 %.pre to i1
  br i1 %27, label %101, label %.thread

.thread:                                          ; preds = %18, %26
  %28 = load i64, ptr %1, align 8
  %29 = tail call ptr @b2GetBodyFullId(ptr noundef nonnull %19, i64 %28) #6
  %30 = getelementptr inbounds i8, ptr %1, i64 8
  %31 = load i64, ptr %30, align 8
  %32 = tail call ptr @b2GetBodyFullId(ptr noundef nonnull %19, i64 %31) #6
  %33 = getelementptr inbounds i8, ptr %1, i64 88
  %34 = load ptr, ptr %33, align 8, !tbaa !32
  %35 = getelementptr inbounds i8, ptr %1, i64 80
  %36 = load i8, ptr %35, align 8, !tbaa !33, !range !30, !noundef !31
  %37 = trunc nuw i8 %36 to i1
  %38 = tail call { ptr, ptr } @b2CreateJoint(ptr noundef nonnull %19, ptr noundef %29, ptr noundef %32, ptr noundef %34, float noundef 1.000000e+00, i32 noundef 4, i1 noundef zeroext %37)
  %39 = extractvalue { ptr, ptr } %38, 0
  %40 = extractvalue { ptr, ptr } %38, 1
  %41 = getelementptr inbounds i8, ptr %40, i64 12
  store i32 4, ptr %41, align 4, !tbaa !34
  %42 = getelementptr inbounds i8, ptr %40, i64 16
  %43 = getelementptr inbounds i8, ptr %1, i64 16
  %44 = load i64, ptr %43, align 8
  store i64 %44, ptr %42, align 4
  %45 = getelementptr inbounds i8, ptr %40, i64 24
  %46 = getelementptr inbounds i8, ptr %1, i64 24
  %47 = load i64, ptr %46, align 8
  store i64 %47, ptr %45, align 4
  %48 = getelementptr inbounds i8, ptr %40, i64 48
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 4 dereferenceable(124) %48, i8 0, i64 124, i1 false)
  %49 = getelementptr inbounds i8, ptr %1, i64 32
  %50 = load <2 x float>, ptr %49, align 8
  %51 = tail call <2 x float> @b2Normalize(<2 x float> %50)
  store <2 x float> %51, ptr %48, align 4
  %52 = getelementptr inbounds i8, ptr %1, i64 40
  %53 = load float, ptr %52, align 8, !tbaa !36
  %54 = getelementptr inbounds i8, ptr %40, i64 96
  store float %53, ptr %54, align 4, !tbaa !37
  %55 = getelementptr inbounds i8, ptr %40, i64 56
  %56 = load i64, ptr @b2Vec2_zero, align 4
  store i64 %56, ptr %55, align 4
  %57 = getelementptr inbounds i8, ptr %40, i64 152
  store float 0.000000e+00, ptr %57, align 4, !tbaa !37
  %58 = getelementptr inbounds i8, ptr %40, i64 64
  %59 = getelementptr inbounds i8, ptr %1, i64 48
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 4 dereferenceable(16) %58, i8 0, i64 16, i1 false)
  %60 = load float, ptr %59, align 8, !tbaa !38
  %61 = getelementptr inbounds i8, ptr %40, i64 80
  store float %60, ptr %61, align 4, !tbaa !37
  %62 = getelementptr inbounds i8, ptr %1, i64 52
  %63 = load float, ptr %62, align 4, !tbaa !39
  %64 = getelementptr inbounds i8, ptr %40, i64 84
  store float %63, ptr %64, align 4, !tbaa !37
  %65 = load float, ptr %10, align 4, !tbaa !16
  %66 = getelementptr inbounds i8, ptr %40, i64 100
  store float %65, ptr %66, align 4, !tbaa !37
  %67 = load float, ptr %12, align 8, !tbaa !17
  %68 = getelementptr inbounds i8, ptr %40, i64 104
  store float %67, ptr %68, align 4, !tbaa !37
  %69 = getelementptr inbounds i8, ptr %1, i64 72
  %70 = load float, ptr %69, align 8, !tbaa !40
  %71 = getelementptr inbounds i8, ptr %40, i64 88
  store float %70, ptr %71, align 4, !tbaa !37
  %72 = getelementptr inbounds i8, ptr %1, i64 76
  %73 = load float, ptr %72, align 4, !tbaa !41
  %74 = getelementptr inbounds i8, ptr %40, i64 92
  store float %73, ptr %74, align 4, !tbaa !37
  %75 = getelementptr inbounds i8, ptr %1, i64 44
  %76 = load i8, ptr %75, align 4, !tbaa !42, !range !30, !noundef !31
  %77 = getelementptr inbounds i8, ptr %40, i64 168
  store i8 %76, ptr %77, align 4, !tbaa !37
  %78 = getelementptr inbounds i8, ptr %1, i64 56
  %79 = load i8, ptr %78, align 8, !tbaa !43, !range !30, !noundef !31
  %80 = getelementptr inbounds i8, ptr %40, i64 169
  store i8 %79, ptr %80, align 1, !tbaa !37
  %81 = getelementptr inbounds i8, ptr %1, i64 68
  %82 = load i8, ptr %81, align 4, !tbaa !44, !range !30, !noundef !31
  %83 = getelementptr inbounds i8, ptr %40, i64 170
  store i8 %82, ptr %83, align 2, !tbaa !37
  %84 = load i8, ptr %35, align 8, !tbaa !33, !range !30, !noundef !31
  %85 = icmp eq i8 %84, 0
  br i1 %85, label %86, label %87

86:                                               ; preds = %.thread
  tail call void @b2DestroyContactsBetweenBodies(ptr noundef nonnull %19, ptr noundef %29, ptr noundef %32)
  br label %87

87:                                               ; preds = %86, %.thread
  %88 = load i32, ptr %40, align 4, !tbaa !45
  %89 = add nsw i32 %88, 1
  %90 = getelementptr inbounds i8, ptr %19, i64 1796
  %91 = load i16, ptr %90, align 4, !tbaa !46
  %92 = getelementptr inbounds i8, ptr %39, i64 68
  %93 = load i16, ptr %92, align 4, !tbaa !47
  %94 = zext i16 %93 to i64
  %95 = shl nuw i64 %94, 48
  %96 = zext i16 %91 to i64
  %97 = shl nuw nsw i64 %96, 32
  %98 = zext i32 %89 to i64
  %99 = or disjoint i64 %97, %98
  %100 = or disjoint i64 %99, %95
  br label %101

101:                                              ; preds = %26, %87
  %.sroa.056.0.insert.insert = phi i64 [ %100, %87 ], [ 0, %26 ]
  ret i64 %.sroa.056.0.insert.insert
}

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

attributes #0 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { cold noreturn nounwind memory(inaccessiblemem: write) }
attributes #3 = { 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 = { 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 = { 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 #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, !8, i64 96}
!6 = !{!"b2PrismaticJointDef", !7, i64 0, !7, i64 8, !12, i64 16, !12, i64 24, !12, i64 32, !13, i64 40, !14, i64 44, !13, i64 48, !13, i64 52, !14, i64 56, !13, i64 60, !13, i64 64, !14, i64 68, !13, i64 72, !13, i64 76, !14, i64 80, !15, i64 88, !8, i64 96}
!7 = !{!"b2BodyId", !8, i64 0, !11, i64 4, !11, i64 6}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!"short", !9, i64 0}
!12 = !{!"b2Vec2", !13, i64 0, !13, i64 4}
!13 = !{!"float", !9, i64 0}
!14 = !{!"_Bool", !9, i64 0}
!15 = !{!"any pointer", !9, i64 0}
!16 = !{!6, !13, i64 60}
!17 = !{!6, !13, i64 64}
!18 = !{!19, !14, i64 1799}
!19 = !{!"b2World", !20, i64 0, !22, i64 40, !25, i64 336, !26, i64 1008, !21, i64 1032, !26, i64 1048, !21, i64 1072, !26, i64 1088, !21, i64 1112, !26, i64 1128, !21, i64 1152, !26, i64 1168, !21, i64 1192, !26, i64 1208, !26, i64 1232, !21, i64 1256, !21, i64 1272, !21, i64 1288, !21, i64 1304, !21, i64 1320, !21, i64 1336, !21, i64 1352, !21, i64 1368, !9, i64 1384, !9, i64 1416, !8, i64 1448, !21, i64 1456, !27, i64 1472, !27, i64 1488, !27, i64 1504, !27, i64 1520, !28, i64 1536, !8, i64 1544, !12, i64 1548, !13, i64 1556, !13, i64 1560, !13, i64 1564, !13, i64 1568, !13, i64 1572, !13, i64 1576, !13, i64 1580, !13, i64 1584, !15, i64 1592, !15, i64 1600, !11, i64 1608, !29, i64 1612, !15, i64 1704, !15, i64 1712, !15, i64 1720, !15, i64 1728, !8, i64 1736, !15, i64 1744, !15, i64 1752, !15, i64 1760, !15, i64 1768, !15, i64 1776, !13, i64 1784, !8, i64 1788, !8, i64 1792, !11, i64 1796, !14, i64 1798, !14, i64 1799, !14, i64 1800, !14, i64 1801, !14, i64 1802, !14, i64 1803}
!20 = !{!"b2ArenaAllocator", !15, i64 0, !8, i64 8, !8, i64 12, !8, i64 16, !8, i64 20, !21, i64 24}
!21 = !{!"", !15, i64 0, !8, i64 8, !8, i64 12}
!22 = !{!"b2BroadPhase", !9, i64 0, !8, i64 216, !23, i64 224, !21, i64 240, !15, i64 256, !15, i64 264, !8, i64 272, !24, i64 276, !23, i64 280}
!23 = !{!"b2HashSet", !15, i64 0, !8, i64 8, !8, i64 12}
!24 = !{!"b2AtomicInt", !8, i64 0}
!25 = !{!"b2ConstraintGraph", !9, i64 0}
!26 = !{!"b2IdPool", !21, i64 0, !8, i64 16}
!27 = !{!"b2BitSet", !15, i64 0, !8, i64 8, !8, i64 12}
!28 = !{!"long", !9, i64 0}
!29 = !{!"b2Profile", !13, i64 0, !13, i64 4, !13, i64 8, !13, i64 12, !13, i64 16, !13, i64 20, !13, i64 24, !13, i64 28, !13, i64 32, !13, i64 36, !13, i64 40, !13, i64 44, !13, i64 48, !13, i64 52, !13, i64 56, !13, i64 60, !13, i64 64, !13, i64 68, !13, i64 72, !13, i64 76, !13, i64 80, !13, i64 84}
!30 = !{i8 0, i8 2}
!31 = !{}
!32 = !{!6, !15, i64 88}
!33 = !{!6, !14, i64 80}
!34 = !{!35, !8, i64 12}
!35 = !{!"b2JointSim", !8, i64 0, !8, i64 4, !8, i64 8, !8, i64 12, !12, i64 16, !12, i64 24, !13, i64 32, !13, i64 36, !13, i64 40, !13, i64 44, !9, i64 48}
!36 = !{!6, !13, i64 40}
!37 = !{!9, !9, i64 0}
!38 = !{!6, !13, i64 48}
!39 = !{!6, !13, i64 52}
!40 = !{!6, !13, i64 72}
!41 = !{!6, !13, i64 76}
!42 = !{!6, !14, i64 44}
!43 = !{!6, !14, i64 56}
!44 = !{!6, !14, i64 68}
!45 = !{!35, !8, i64 0}
!46 = !{!19, !11, i64 1796}
!47 = !{!48, !11, i64 68}
!48 = !{!"b2Joint", !15, i64 0, !8, i64 8, !8, i64 12, !8, i64 16, !9, i64 20, !8, i64 44, !8, i64 48, !8, i64 52, !8, i64 56, !13, i64 60, !8, i64 64, !11, i64 68, !14, i64 70, !14, i64 71}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,MemCpyOptPass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass