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

; 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.b2WorldId = type { i16, i16 }
%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.b2StepContext = type { float, float, float, float, i32, %struct.b2Softness, %struct.b2Softness, %struct.b2Softness, float, float, ptr, ptr, ptr, ptr, ptr, i32, ptr, %struct.b2AtomicInt, ptr, ptr, ptr, i32, i32, ptr, i32, i8, [64 x i8], %struct.b2AtomicU32, [64 x i8] }
%struct.b2Softness = type { float, float, float }
%struct.b2AtomicInt = type { i32 }
%struct.b2AtomicU32 = type { i32 }
%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.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.b2Vec2 = type { float, float }

@.str.1 = external hidden unnamed_addr constant [61 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [28 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: nounwind uwtable
declare dso_local ptr @b2GetWorldFromId(i32) #1

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

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

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

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

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

; Function Attrs: nounwind uwtable
define dso_local void @b2World_Step(i32 %0, float noundef %1, i32 noundef %2) #6 {
  %4 = alloca %struct.b2WorldId, align 2
  %5 = alloca float, align 4
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca %struct.b2Profile, align 4
  %10 = alloca i64, align 8
  %11 = alloca i64, align 8
  %12 = alloca %struct.b2StepContext, align 8
  %13 = alloca float, align 4
  %14 = alloca float, align 4
  %15 = alloca %struct.b2Softness, align 4
  %16 = alloca { <2 x float>, float }, align 8
  %17 = alloca %struct.b2Softness, align 4
  %18 = alloca { <2 x float>, float }, align 8
  %19 = alloca %struct.b2Softness, align 4
  %20 = alloca { <2 x float>, float }, align 8
  %21 = alloca i64, align 8
  %22 = alloca i64, align 8
  %23 = alloca i64, align 8
  store i32 %0, ptr %4, align 2
  store float %1, ptr %5, align 4, !tbaa !5
  store i32 %2, ptr %6, align 4, !tbaa !9
  br label %24

24:                                               ; preds = %3
  %25 = load float, ptr %5, align 4, !tbaa !5
  %26 = call zeroext i1 @b2IsValidFloat(float noundef %25)
  br i1 %26, label %31, label %27

27:                                               ; preds = %24
  %28 = call i32 @b2InternalAssertFcn(ptr noundef @.str.13, ptr noundef @.str.1, i32 noundef 702)
  %29 = icmp ne i32 %28, 0
  br i1 %29, label %30, label %31

30:                                               ; preds = %27
  call void @llvm.trap()
  br label %31

31:                                               ; preds = %30, %27, %24
  br label %32

32:                                               ; preds = %31
  br label %33

33:                                               ; preds = %32
  %34 = load i32, ptr %6, align 4, !tbaa !9
  %35 = icmp slt i32 0, %34
  br i1 %35, label %40, label %36

36:                                               ; preds = %33
  %37 = call i32 @b2InternalAssertFcn(ptr noundef @.str.14, ptr noundef @.str.1, i32 noundef 703)
  %38 = icmp ne i32 %37, 0
  br i1 %38, label %39, label %40

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

40:                                               ; preds = %39, %36, %33
  br label %41

41:                                               ; preds = %40
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #8
  %42 = load i32, ptr %4, align 2
  %43 = call ptr @b2GetWorldFromId(i32 %42)
  store ptr %43, ptr %7, align 8, !tbaa !11
  br label %44

44:                                               ; preds = %41
  %45 = load ptr, ptr %7, align 8, !tbaa !11
  %46 = getelementptr inbounds %struct.b2World, ptr %45, i32 0, i32 61
  %47 = load i8, ptr %46, align 1, !tbaa !13, !range !28, !noundef !29
  %48 = trunc i8 %47 to i1
  %49 = zext i1 %48 to i32
  %50 = icmp eq i32 %49, 0
  br i1 %50, label %55, label %51

51:                                               ; preds = %44
  %52 = call i32 @b2InternalAssertFcn(ptr noundef @.str.15, ptr noundef @.str.1, i32 noundef 706)
  %53 = icmp ne i32 %52, 0
  br i1 %53, label %54, label %55

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

55:                                               ; preds = %54, %51, %44
  br label %56

56:                                               ; preds = %55
  br label %57

57:                                               ; preds = %56
  %58 = load ptr, ptr %7, align 8, !tbaa !11
  %59 = getelementptr inbounds %struct.b2World, ptr %58, i32 0, i32 61
  %60 = load i8, ptr %59, align 1, !tbaa !13, !range !28, !noundef !29
  %61 = trunc i8 %60 to i1
  br i1 %61, label %62, label %63

62:                                               ; preds = %57
  store i32 1, ptr %8, align 4
  br label %304

63:                                               ; preds = %57
  %64 = load ptr, ptr %7, align 8, !tbaa !11
  %65 = getelementptr inbounds %struct.b2World, ptr %64, i32 0, i32 20
  call void @b2BodyMoveEventArray_Clear(ptr noundef %65)
  %66 = load ptr, ptr %7, align 8, !tbaa !11
  %67 = getelementptr inbounds %struct.b2World, ptr %66, i32 0, i32 21
  call void @b2SensorBeginTouchEventArray_Clear(ptr noundef %67)
  %68 = load ptr, ptr %7, align 8, !tbaa !11
  %69 = getelementptr inbounds %struct.b2World, ptr %68, i32 0, i32 22
  call void @b2ContactBeginTouchEventArray_Clear(ptr noundef %69)
  %70 = load ptr, ptr %7, align 8, !tbaa !11
  %71 = getelementptr inbounds %struct.b2World, ptr %70, i32 0, i32 26
  call void @b2ContactHitEventArray_Clear(ptr noundef %71)
  %72 = load ptr, ptr %7, align 8, !tbaa !11
  %73 = getelementptr inbounds %struct.b2World, ptr %72, i32 0, i32 45
  call void @llvm.memset.p0.i64(ptr align 4 %9, i8 0, i64 88, i1 false)
  %74 = getelementptr inbounds %struct.b2Profile, ptr %9, i32 0, i32 0
  %75 = getelementptr inbounds %struct.b2Profile, ptr %9, i32 0, i32 1
  %76 = getelementptr inbounds %struct.b2Profile, ptr %9, i32 0, i32 2
  %77 = getelementptr inbounds %struct.b2Profile, ptr %9, i32 0, i32 3
  %78 = getelementptr inbounds %struct.b2Profile, ptr %9, i32 0, i32 4
  %79 = getelementptr inbounds %struct.b2Profile, ptr %9, i32 0, i32 5
  %80 = getelementptr inbounds %struct.b2Profile, ptr %9, i32 0, i32 6
  %81 = getelementptr inbounds %struct.b2Profile, ptr %9, i32 0, i32 7
  %82 = getelementptr inbounds %struct.b2Profile, ptr %9, i32 0, i32 8
  %83 = getelementptr inbounds %struct.b2Profile, ptr %9, i32 0, i32 9
  %84 = getelementptr inbounds %struct.b2Profile, ptr %9, i32 0, i32 10
  %85 = getelementptr inbounds %struct.b2Profile, ptr %9, i32 0, i32 11
  %86 = getelementptr inbounds %struct.b2Profile, ptr %9, i32 0, i32 12
  %87 = getelementptr inbounds %struct.b2Profile, ptr %9, i32 0, i32 13
  %88 = getelementptr inbounds %struct.b2Profile, ptr %9, i32 0, i32 14
  %89 = getelementptr inbounds %struct.b2Profile, ptr %9, i32 0, i32 15
  %90 = getelementptr inbounds %struct.b2Profile, ptr %9, i32 0, i32 16
  %91 = getelementptr inbounds %struct.b2Profile, ptr %9, i32 0, i32 17
  %92 = getelementptr inbounds %struct.b2Profile, ptr %9, i32 0, i32 18
  %93 = getelementptr inbounds %struct.b2Profile, ptr %9, i32 0, i32 19
  %94 = getelementptr inbounds %struct.b2Profile, ptr %9, i32 0, i32 20
  %95 = getelementptr inbounds %struct.b2Profile, ptr %9, i32 0, i32 21
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %73, ptr align 4 %9, i64 88, i1 false), !tbaa.struct !30
  %96 = load float, ptr %5, align 4, !tbaa !5
  %97 = fcmp oeq float %96, 0.000000e+00
  br i1 %97, label %98, label %121

98:                                               ; preds = %63
  %99 = load ptr, ptr %7, align 8, !tbaa !11
  %100 = getelementptr inbounds %struct.b2World, ptr %99, i32 0, i32 25
  %101 = load i32, ptr %100, align 8, !tbaa !31
  %102 = sub nsw i32 1, %101
  %103 = load ptr, ptr %7, align 8, !tbaa !11
  %104 = getelementptr inbounds %struct.b2World, ptr %103, i32 0, i32 25
  store i32 %102, ptr %104, align 8, !tbaa !31
  %105 = load ptr, ptr %7, align 8, !tbaa !11
  %106 = getelementptr inbounds %struct.b2World, ptr %105, i32 0, i32 23
  %107 = getelementptr inbounds [2 x %struct.b2SensorEndTouchEventArray], ptr %106, i64 0, i64 0
  %108 = load ptr, ptr %7, align 8, !tbaa !11
  %109 = getelementptr inbounds %struct.b2World, ptr %108, i32 0, i32 25
  %110 = load i32, ptr %109, align 8, !tbaa !31
  %111 = sext i32 %110 to i64
  %112 = getelementptr inbounds %struct.b2SensorEndTouchEventArray, ptr %107, i64 %111
  call void @b2SensorEndTouchEventArray_Clear(ptr noundef %112)
  %113 = load ptr, ptr %7, align 8, !tbaa !11
  %114 = getelementptr inbounds %struct.b2World, ptr %113, i32 0, i32 24
  %115 = getelementptr inbounds [2 x %struct.b2ContactEndTouchEventArray], ptr %114, i64 0, i64 0
  %116 = load ptr, ptr %7, align 8, !tbaa !11
  %117 = getelementptr inbounds %struct.b2World, ptr %116, i32 0, i32 25
  %118 = load i32, ptr %117, align 8, !tbaa !31
  %119 = sext i32 %118 to i64
  %120 = getelementptr inbounds %struct.b2ContactEndTouchEventArray, ptr %115, i64 %119
  call void @b2ContactEndTouchEventArray_Clear(ptr noundef %120)
  store i32 1, ptr %8, align 4
  br label %304

121:                                              ; preds = %63
  %122 = load ptr, ptr %7, align 8, !tbaa !11
  %123 = getelementptr inbounds %struct.b2World, ptr %122, i32 0, i32 61
  store i8 1, ptr %123, align 1, !tbaa !13
  %124 = load ptr, ptr %7, align 8, !tbaa !11
  %125 = getelementptr inbounds %struct.b2World, ptr %124, i32 0, i32 57
  store i32 0, ptr %125, align 4, !tbaa !32
  %126 = load ptr, ptr %7, align 8, !tbaa !11
  %127 = getelementptr inbounds %struct.b2World, ptr %126, i32 0, i32 58
  store i32 0, ptr %127, align 8, !tbaa !33
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #8
  %128 = call i64 @b2GetTicks()
  store i64 %128, ptr %10, align 8, !tbaa !34
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #8
  %129 = call i64 @b2GetTicks()
  store i64 %129, ptr %11, align 8, !tbaa !34
  %130 = load ptr, ptr %7, align 8, !tbaa !11
  call void @b2UpdateBroadPhasePairs(ptr noundef %130)
  %131 = load i64, ptr %11, align 8, !tbaa !34
  %132 = call float @b2GetMilliseconds(i64 noundef %131)
  %133 = load ptr, ptr %7, align 8, !tbaa !11
  %134 = getelementptr inbounds %struct.b2World, ptr %133, i32 0, i32 45
  %135 = getelementptr inbounds %struct.b2Profile, ptr %134, i32 0, i32 1
  store float %132, ptr %135, align 4, !tbaa !35
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #8
  call void @llvm.lifetime.start.p0(i64 312, ptr %12) #8
  call void @llvm.memset.p0.i64(ptr align 8 %12, i8 0, i64 312, i1 false)
  %136 = load ptr, ptr %7, align 8, !tbaa !11
  %137 = getelementptr inbounds %struct.b2StepContext, ptr %12, i32 0, i32 10
  store ptr %136, ptr %137, align 8, !tbaa !36
  %138 = load float, ptr %5, align 4, !tbaa !5
  %139 = getelementptr inbounds %struct.b2StepContext, ptr %12, i32 0, i32 0
  store float %138, ptr %139, align 8, !tbaa !40
  %140 = load i32, ptr %6, align 4, !tbaa !9
  %141 = call i32 @b2MaxInt(i32 noundef 1, i32 noundef %140)
  %142 = getelementptr inbounds %struct.b2StepContext, ptr %12, i32 0, i32 4
  store i32 %141, ptr %142, align 8, !tbaa !41
  %143 = load float, ptr %5, align 4, !tbaa !5
  %144 = fcmp ogt float %143, 0.000000e+00
  br i1 %144, label %145, label %162

145:                                              ; preds = %121
  %146 = load float, ptr %5, align 4, !tbaa !5
  %147 = fdiv float 1.000000e+00, %146
  %148 = getelementptr inbounds %struct.b2StepContext, ptr %12, i32 0, i32 1
  store float %147, ptr %148, align 4, !tbaa !42
  %149 = load float, ptr %5, align 4, !tbaa !5
  %150 = getelementptr inbounds %struct.b2StepContext, ptr %12, i32 0, i32 4
  %151 = load i32, ptr %150, align 8, !tbaa !41
  %152 = sitofp i32 %151 to float
  %153 = fdiv float %149, %152
  %154 = getelementptr inbounds %struct.b2StepContext, ptr %12, i32 0, i32 2
  store float %153, ptr %154, align 8, !tbaa !43
  %155 = getelementptr inbounds %struct.b2StepContext, ptr %12, i32 0, i32 4
  %156 = load i32, ptr %155, align 8, !tbaa !41
  %157 = sitofp i32 %156 to float
  %158 = getelementptr inbounds %struct.b2StepContext, ptr %12, i32 0, i32 1
  %159 = load float, ptr %158, align 4, !tbaa !42
  %160 = fmul float %157, %159
  %161 = getelementptr inbounds %struct.b2StepContext, ptr %12, i32 0, i32 3
  store float %160, ptr %161, align 4, !tbaa !44
  br label %166

162:                                              ; preds = %121
  %163 = getelementptr inbounds %struct.b2StepContext, ptr %12, i32 0, i32 1
  store float 0.000000e+00, ptr %163, align 4, !tbaa !42
  %164 = getelementptr inbounds %struct.b2StepContext, ptr %12, i32 0, i32 2
  store float 0.000000e+00, ptr %164, align 8, !tbaa !43
  %165 = getelementptr inbounds %struct.b2StepContext, ptr %12, i32 0, i32 3
  store float 0.000000e+00, ptr %165, align 4, !tbaa !44
  br label %166

166:                                              ; preds = %162, %145
  %167 = getelementptr inbounds %struct.b2StepContext, ptr %12, i32 0, i32 3
  %168 = load float, ptr %167, align 4, !tbaa !44
  %169 = load ptr, ptr %7, align 8, !tbaa !11
  %170 = getelementptr inbounds %struct.b2World, ptr %169, i32 0, i32 56
  store float %168, ptr %170, align 8, !tbaa !45
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #8
  %171 = load ptr, ptr %7, align 8, !tbaa !11
  %172 = getelementptr inbounds %struct.b2World, ptr %171, i32 0, i32 38
  %173 = load float, ptr %172, align 4, !tbaa !46
  %174 = getelementptr inbounds %struct.b2StepContext, ptr %12, i32 0, i32 3
  %175 = load float, ptr %174, align 4, !tbaa !44
  %176 = fmul float 2.500000e-01, %175
  %177 = call float @b2MinFloat(float noundef %173, float noundef %176)
  store float %177, ptr %13, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #8
  %178 = load ptr, ptr %7, align 8, !tbaa !11
  %179 = getelementptr inbounds %struct.b2World, ptr %178, i32 0, i32 40
  %180 = load float, ptr %179, align 4, !tbaa !47
  %181 = getelementptr inbounds %struct.b2StepContext, ptr %12, i32 0, i32 3
  %182 = load float, ptr %181, align 4, !tbaa !44
  %183 = fmul float 1.250000e-01, %182
  %184 = call float @b2MinFloat(float noundef %180, float noundef %183)
  store float %184, ptr %14, align 4, !tbaa !5
  %185 = getelementptr inbounds %struct.b2StepContext, ptr %12, i32 0, i32 6
  call void @llvm.lifetime.start.p0(i64 12, ptr %15) #8
  %186 = load float, ptr %13, align 4, !tbaa !5
  %187 = load ptr, ptr %7, align 8, !tbaa !11
  %188 = getelementptr inbounds %struct.b2World, ptr %187, i32 0, i32 39
  %189 = load float, ptr %188, align 8, !tbaa !48
  %190 = getelementptr inbounds %struct.b2StepContext, ptr %12, i32 0, i32 2
  %191 = load float, ptr %190, align 8, !tbaa !43
  %192 = call { <2 x float>, float } @b2MakeSoft(float noundef %186, float noundef %189, float noundef %191)
  store { <2 x float>, float } %192, ptr %16, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %15, ptr align 8 %16, i64 12, i1 false)
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %185, ptr align 4 %15, i64 12, i1 false), !tbaa.struct !49
  call void @llvm.lifetime.end.p0(i64 12, ptr %15) #8
  %193 = getelementptr inbounds %struct.b2StepContext, ptr %12, i32 0, i32 7
  call void @llvm.lifetime.start.p0(i64 12, ptr %17) #8
  %194 = load float, ptr %13, align 4, !tbaa !5
  %195 = fmul float 2.000000e+00, %194
  %196 = load ptr, ptr %7, align 8, !tbaa !11
  %197 = getelementptr inbounds %struct.b2World, ptr %196, i32 0, i32 39
  %198 = load float, ptr %197, align 8, !tbaa !48
  %199 = getelementptr inbounds %struct.b2StepContext, ptr %12, i32 0, i32 2
  %200 = load float, ptr %199, align 8, !tbaa !43
  %201 = call { <2 x float>, float } @b2MakeSoft(float noundef %195, float noundef %198, float noundef %200)
  store { <2 x float>, float } %201, ptr %18, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %17, ptr align 8 %18, i64 12, i1 false)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %193, ptr align 4 %17, i64 12, i1 false), !tbaa.struct !49
  call void @llvm.lifetime.end.p0(i64 12, ptr %17) #8
  %202 = getelementptr inbounds %struct.b2StepContext, ptr %12, i32 0, i32 5
  call void @llvm.lifetime.start.p0(i64 12, ptr %19) #8
  %203 = load float, ptr %14, align 4, !tbaa !5
  %204 = load ptr, ptr %7, align 8, !tbaa !11
  %205 = getelementptr inbounds %struct.b2World, ptr %204, i32 0, i32 41
  %206 = load float, ptr %205, align 8, !tbaa !50
  %207 = getelementptr inbounds %struct.b2StepContext, ptr %12, i32 0, i32 2
  %208 = load float, ptr %207, align 8, !tbaa !43
  %209 = call { <2 x float>, float } @b2MakeSoft(float noundef %203, float noundef %206, float noundef %208)
  store { <2 x float>, float } %209, ptr %20, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %19, ptr align 8 %20, i64 12, i1 false)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %202, ptr align 4 %19, i64 12, i1 false), !tbaa.struct !49
  call void @llvm.lifetime.end.p0(i64 12, ptr %19) #8
  %210 = load ptr, ptr %7, align 8, !tbaa !11
  %211 = getelementptr inbounds %struct.b2World, ptr %210, i32 0, i32 35
  %212 = load float, ptr %211, align 8, !tbaa !51
  %213 = getelementptr inbounds %struct.b2StepContext, ptr %12, i32 0, i32 8
  store float %212, ptr %213, align 8, !tbaa !52
  %214 = load ptr, ptr %7, align 8, !tbaa !11
  %215 = getelementptr inbounds %struct.b2World, ptr %214, i32 0, i32 36
  %216 = load float, ptr %215, align 4, !tbaa !53
  %217 = getelementptr inbounds %struct.b2StepContext, ptr %12, i32 0, i32 9
  store float %216, ptr %217, align 4, !tbaa !54
  %218 = load ptr, ptr %7, align 8, !tbaa !11
  %219 = getelementptr inbounds %struct.b2World, ptr %218, i32 0, i32 62
  %220 = load i8, ptr %219, align 8, !tbaa !55, !range !28, !noundef !29
  %221 = trunc i8 %220 to i1
  %222 = getelementptr inbounds %struct.b2StepContext, ptr %12, i32 0, i32 25
  %223 = zext i1 %221 to i8
  store i8 %223, ptr %222, align 4, !tbaa !56
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #8
  %224 = call i64 @b2GetTicks()
  store i64 %224, ptr %21, align 8, !tbaa !34
  call void @b2Collide(ptr noundef %12)
  %225 = load i64, ptr %21, align 8, !tbaa !34
  %226 = call float @b2GetMilliseconds(i64 noundef %225)
  %227 = load ptr, ptr %7, align 8, !tbaa !11
  %228 = getelementptr inbounds %struct.b2World, ptr %227, i32 0, i32 45
  %229 = getelementptr inbounds %struct.b2Profile, ptr %228, i32 0, i32 2
  store float %226, ptr %229, align 4, !tbaa !57
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #8
  %230 = getelementptr inbounds %struct.b2StepContext, ptr %12, i32 0, i32 0
  %231 = load float, ptr %230, align 8, !tbaa !40
  %232 = fcmp ogt float %231, 0.000000e+00
  br i1 %232, label %233, label %241

233:                                              ; preds = %166
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #8
  %234 = call i64 @b2GetTicks()
  store i64 %234, ptr %22, align 8, !tbaa !34
  %235 = load ptr, ptr %7, align 8, !tbaa !11
  call void @b2Solve(ptr noundef %235, ptr noundef %12)
  %236 = load i64, ptr %22, align 8, !tbaa !34
  %237 = call float @b2GetMilliseconds(i64 noundef %236)
  %238 = load ptr, ptr %7, align 8, !tbaa !11
  %239 = getelementptr inbounds %struct.b2World, ptr %238, i32 0, i32 45
  %240 = getelementptr inbounds %struct.b2Profile, ptr %239, i32 0, i32 3
  store float %237, ptr %240, align 4, !tbaa !58
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #8
  br label %241

241:                                              ; preds = %233, %166
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #8
  %242 = call i64 @b2GetTicks()
  store i64 %242, ptr %23, align 8, !tbaa !34
  %243 = load ptr, ptr %7, align 8, !tbaa !11
  call void @b2OverlapSensors(ptr noundef %243)
  %244 = load i64, ptr %23, align 8, !tbaa !34
  %245 = call float @b2GetMilliseconds(i64 noundef %244)
  %246 = load ptr, ptr %7, align 8, !tbaa !11
  %247 = getelementptr inbounds %struct.b2World, ptr %246, i32 0, i32 45
  %248 = getelementptr inbounds %struct.b2Profile, ptr %247, i32 0, i32 21
  store float %245, ptr %248, align 4, !tbaa !59
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #8
  %249 = load i64, ptr %10, align 8, !tbaa !34
  %250 = call float @b2GetMilliseconds(i64 noundef %249)
  %251 = load ptr, ptr %7, align 8, !tbaa !11
  %252 = getelementptr inbounds %struct.b2World, ptr %251, i32 0, i32 45
  %253 = getelementptr inbounds %struct.b2Profile, ptr %252, i32 0, i32 0
  store float %250, ptr %253, align 4, !tbaa !60
  br label %254

254:                                              ; preds = %241
  %255 = load ptr, ptr %7, align 8, !tbaa !11
  %256 = getelementptr inbounds %struct.b2World, ptr %255, i32 0, i32 0
  %257 = call i32 @b2GetArenaAllocation(ptr noundef %256)
  %258 = icmp eq i32 %257, 0
  br i1 %258, label %263, label %259

259:                                              ; preds = %254
  %260 = call i32 @b2InternalAssertFcn(ptr noundef @.str.16, ptr noundef @.str.1, i32 noundef 803)
  %261 = icmp ne i32 %260, 0
  br i1 %261, label %262, label %263

262:                                              ; preds = %259
  call void @llvm.trap()
  br label %263

263:                                              ; preds = %262, %259, %254
  br label %264

264:                                              ; preds = %263
  br label %265

265:                                              ; preds = %264
  %266 = load ptr, ptr %7, align 8, !tbaa !11
  %267 = getelementptr inbounds %struct.b2World, ptr %266, i32 0, i32 0
  call void @b2GrowArena(ptr noundef %267)
  br label %268

268:                                              ; preds = %265
  %269 = load ptr, ptr %7, align 8, !tbaa !11
  %270 = getelementptr inbounds %struct.b2World, ptr %269, i32 0, i32 57
  %271 = load i32, ptr %270, align 4, !tbaa !32
  %272 = icmp eq i32 %271, 0
  br i1 %272, label %277, label %273

273:                                              ; preds = %268
  %274 = call i32 @b2InternalAssertFcn(ptr noundef @.str.17, ptr noundef @.str.1, i32 noundef 809)
  %275 = icmp ne i32 %274, 0
  br i1 %275, label %276, label %277

276:                                              ; preds = %273
  call void @llvm.trap()
  br label %277

277:                                              ; preds = %276, %273, %268
  br label %278

278:                                              ; preds = %277
  br label %279

279:                                              ; preds = %278
  %280 = load ptr, ptr %7, align 8, !tbaa !11
  %281 = getelementptr inbounds %struct.b2World, ptr %280, i32 0, i32 25
  %282 = load i32, ptr %281, align 8, !tbaa !31
  %283 = sub nsw i32 1, %282
  %284 = load ptr, ptr %7, align 8, !tbaa !11
  %285 = getelementptr inbounds %struct.b2World, ptr %284, i32 0, i32 25
  store i32 %283, ptr %285, align 8, !tbaa !31
  %286 = load ptr, ptr %7, align 8, !tbaa !11
  %287 = getelementptr inbounds %struct.b2World, ptr %286, i32 0, i32 23
  %288 = getelementptr inbounds [2 x %struct.b2SensorEndTouchEventArray], ptr %287, i64 0, i64 0
  %289 = load ptr, ptr %7, align 8, !tbaa !11
  %290 = getelementptr inbounds %struct.b2World, ptr %289, i32 0, i32 25
  %291 = load i32, ptr %290, align 8, !tbaa !31
  %292 = sext i32 %291 to i64
  %293 = getelementptr inbounds %struct.b2SensorEndTouchEventArray, ptr %288, i64 %292
  call void @b2SensorEndTouchEventArray_Clear(ptr noundef %293)
  %294 = load ptr, ptr %7, align 8, !tbaa !11
  %295 = getelementptr inbounds %struct.b2World, ptr %294, i32 0, i32 24
  %296 = getelementptr inbounds [2 x %struct.b2ContactEndTouchEventArray], ptr %295, i64 0, i64 0
  %297 = load ptr, ptr %7, align 8, !tbaa !11
  %298 = getelementptr inbounds %struct.b2World, ptr %297, i32 0, i32 25
  %299 = load i32, ptr %298, align 8, !tbaa !31
  %300 = sext i32 %299 to i64
  %301 = getelementptr inbounds %struct.b2ContactEndTouchEventArray, ptr %296, i64 %300
  call void @b2ContactEndTouchEventArray_Clear(ptr noundef %301)
  %302 = load ptr, ptr %7, align 8, !tbaa !11
  %303 = getelementptr inbounds %struct.b2World, ptr %302, i32 0, i32 61
  store i8 0, ptr %303, align 1, !tbaa !13
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #8
  call void @llvm.lifetime.end.p0(i64 312, ptr %12) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #8
  store i32 0, ptr %8, align 4
  br label %304

304:                                              ; preds = %279, %98, %62
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #8
  %305 = load i32, ptr %8, align 4
  switch i32 %305, label %307 [
    i32 0, label %306
    i32 1, label %306
  ]

306:                                              ; preds = %304, %304
  ret void

307:                                              ; preds = %304
  unreachable
}

declare zeroext i1 @b2IsValidFloat(float noundef) #2

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @b2BodyMoveEventArray_Clear(ptr noundef) #7

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @b2SensorBeginTouchEventArray_Clear(ptr noundef) #7

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @b2ContactBeginTouchEventArray_Clear(ptr noundef) #7

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @b2ContactHitEventArray_Clear(ptr noundef) #7

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @b2SensorEndTouchEventArray_Clear(ptr noundef) #7

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @b2ContactEndTouchEventArray_Clear(ptr noundef) #7

declare i64 @b2GetTicks() #2

declare void @b2UpdateBroadPhasePairs(ptr noundef) #2

declare float @b2GetMilliseconds(i64 noundef) #2

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @b2MaxInt(i32 noundef, i32 noundef) #7

; Function Attrs: inlinehint nounwind uwtable
declare hidden float @b2MinFloat(float noundef, float noundef) #7

; Function Attrs: inlinehint nounwind uwtable
declare hidden { <2 x float>, float } @b2MakeSoft(float noundef, float noundef, float noundef) #7

; Function Attrs: nounwind uwtable
declare hidden void @b2Collide(ptr noundef) #1

declare void @b2Solve(ptr noundef, ptr noundef) #2

declare void @b2OverlapSensors(ptr noundef) #2

declare i32 @b2GetArenaAllocation(ptr noundef) #2

declare void @b2GrowArena(ptr noundef) #2

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


; 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.b2StepContext = type { float, float, float, float, i32, %struct.b2Softness, %struct.b2Softness, %struct.b2Softness, float, float, ptr, ptr, ptr, ptr, ptr, i32, ptr, %struct.b2AtomicInt, ptr, ptr, ptr, i32, i32, ptr, i32, i8, [64 x i8], %struct.b2AtomicU32, [64 x i8] }
%struct.b2Softness = type { float, float, float }
%struct.b2AtomicInt = type { i32 }
%struct.b2AtomicU32 = type { i32 }
%struct.b2SensorEndTouchEventArray = type { ptr, i32, i32 }
%struct.b2ContactEndTouchEventArray = type { ptr, i32, i32 }

@.str.1 = external hidden unnamed_addr constant [61 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [28 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

; Function Attrs: nounwind uwtable
declare dso_local ptr @b2GetWorldFromId(i32) local_unnamed_addr #1

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

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

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

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

; Function Attrs: nounwind uwtable
define dso_local void @b2World_Step(i32 %0, float noundef %1, i32 noundef %2) local_unnamed_addr #5 {
  %4 = alloca %struct.b2StepContext, align 8
  %5 = tail call zeroext i1 @b2IsValidFloat(float noundef %1) #7
  br i1 %5, label %9, label %6

6:                                                ; preds = %3
  %7 = tail call i32 @b2InternalAssertFcn(ptr noundef nonnull @.str.13, ptr noundef nonnull @.str.1, i32 noundef 702) #7
  %.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, %3
  %10 = icmp sgt i32 %2, 0
  br i1 %10, label %14, label %11

11:                                               ; preds = %9
  %12 = tail call i32 @b2InternalAssertFcn(ptr noundef nonnull @.str.14, ptr noundef nonnull @.str.1, i32 noundef 703) #7
  %.not73 = icmp eq i32 %12, 0
  br i1 %.not73, label %14, label %13

13:                                               ; preds = %11
  tail call void @llvm.trap()
  unreachable

14:                                               ; preds = %9, %11
  %15 = tail call ptr @b2GetWorldFromId(i32 %0)
  %16 = getelementptr inbounds i8, ptr %15, i64 1799
  %17 = load i8, ptr %16, align 1, !tbaa !5, !range !25, !noundef !26
  %18 = icmp eq i8 %17, 0
  br i1 %18, label %.thread, label %19

19:                                               ; preds = %14
  %20 = tail call i32 @b2InternalAssertFcn(ptr noundef nonnull @.str.15, ptr noundef nonnull @.str.1, i32 noundef 706) #7
  %.not74 = icmp eq i32 %20, 0
  br i1 %.not74, label %22, label %21

21:                                               ; preds = %19
  tail call void @llvm.trap()
  unreachable

22:                                               ; preds = %19
  %.pre = load i8, ptr %16, align 1, !tbaa !5, !range !25
  %23 = trunc nuw i8 %.pre to i1
  br i1 %23, label %129, label %.thread

.thread:                                          ; preds = %14, %22
  %24 = getelementptr inbounds i8, ptr %15, i64 1336
  tail call void @b2BodyMoveEventArray_Clear(ptr noundef nonnull %24)
  %25 = getelementptr inbounds i8, ptr %15, i64 1352
  tail call void @b2SensorBeginTouchEventArray_Clear(ptr noundef nonnull %25)
  %26 = getelementptr inbounds i8, ptr %15, i64 1368
  tail call void @b2ContactBeginTouchEventArray_Clear(ptr noundef nonnull %26)
  %27 = getelementptr inbounds i8, ptr %15, i64 1456
  tail call void @b2ContactHitEventArray_Clear(ptr noundef nonnull %27)
  %28 = getelementptr inbounds i8, ptr %15, i64 1612
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 4 dereferenceable(88) %28, i8 0, i64 88, i1 false)
  %29 = fcmp oeq float %1, 0.000000e+00
  br i1 %29, label %30, label %41

30:                                               ; preds = %.thread
  %31 = getelementptr inbounds i8, ptr %15, i64 1448
  %32 = load i32, ptr %31, align 8, !tbaa !27
  %33 = sub nsw i32 1, %32
  store i32 %33, ptr %31, align 8, !tbaa !27
  %34 = getelementptr inbounds i8, ptr %15, i64 1384
  %35 = sext i32 %33 to i64
  %36 = getelementptr inbounds %struct.b2SensorEndTouchEventArray, ptr %34, i64 %35
  tail call void @b2SensorEndTouchEventArray_Clear(ptr noundef nonnull %36)
  %37 = getelementptr inbounds i8, ptr %15, i64 1416
  %38 = load i32, ptr %31, align 8, !tbaa !27
  %39 = sext i32 %38 to i64
  %40 = getelementptr inbounds %struct.b2ContactEndTouchEventArray, ptr %37, i64 %39
  tail call void @b2ContactEndTouchEventArray_Clear(ptr noundef nonnull %40)
  br label %129

41:                                               ; preds = %.thread
  store i8 1, ptr %16, align 1, !tbaa !5
  %42 = getelementptr inbounds i8, ptr %15, i64 1788
  store i32 0, ptr %42, align 4, !tbaa !28
  %43 = getelementptr inbounds i8, ptr %15, i64 1792
  store i32 0, ptr %43, align 8, !tbaa !29
  %44 = tail call i64 @b2GetTicks() #7
  %45 = tail call i64 @b2GetTicks() #7
  tail call void @b2UpdateBroadPhasePairs(ptr noundef nonnull %15) #7
  %46 = tail call float @b2GetMilliseconds(i64 noundef %45) #7
  %47 = getelementptr inbounds i8, ptr %15, i64 1616
  store float %46, ptr %47, align 4, !tbaa !30
  call void @llvm.lifetime.start.p0(i64 312, ptr nonnull %4) #7
  %48 = getelementptr inbounds i8, ptr %4, i64 72
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(312) %48, i8 0, i64 240, i1 false)
  %49 = getelementptr inbounds i8, ptr %4, i64 64
  store ptr %15, ptr %49, align 8, !tbaa !31
  store float %1, ptr %4, align 8, !tbaa !35
  %50 = tail call i32 @b2MaxInt(i32 noundef 1, i32 noundef %2)
  %51 = getelementptr inbounds i8, ptr %4, i64 16
  store i32 %50, ptr %51, align 8, !tbaa !36
  %52 = fcmp ogt float %1, 0.000000e+00
  %53 = sitofp i32 %50 to float
  %54 = getelementptr inbounds i8, ptr %4, i64 4
  %55 = insertelement <2 x float> <float 1.000000e+00, float poison>, float %1, i64 1
  %56 = insertelement <2 x float> poison, float %1, i64 0
  %57 = insertelement <2 x float> %56, float %53, i64 1
  %58 = fdiv <2 x float> %55, %57
  %59 = extractelement <2 x float> %58, i64 0
  %60 = fmul float %59, %53
  %61 = insertelement <2 x i1> poison, i1 %52, i64 0
  %62 = shufflevector <2 x i1> %61, <2 x i1> poison, <2 x i32> zeroinitializer
  %63 = select <2 x i1> %62, <2 x float> %58, <2 x float> zeroinitializer
  %.sink = select i1 %52, float %60, float 0.000000e+00
  store <2 x float> %63, ptr %54, align 4
  %64 = getelementptr inbounds i8, ptr %4, i64 12
  store float %.sink, ptr %64, align 4
  %65 = getelementptr inbounds i8, ptr %15, i64 1784
  store float %.sink, ptr %65, align 8, !tbaa !37
  %66 = getelementptr inbounds i8, ptr %15, i64 1572
  %67 = load float, ptr %66, align 4, !tbaa !38
  %68 = fmul float %.sink, 2.500000e-01
  %69 = tail call float @b2MinFloat(float noundef %67, float noundef %68)
  %70 = getelementptr inbounds i8, ptr %15, i64 1580
  %71 = load float, ptr %70, align 4, !tbaa !39
  %72 = fmul float %.sink, 1.250000e-01
  %73 = tail call float @b2MinFloat(float noundef %71, float noundef %72)
  %74 = getelementptr inbounds i8, ptr %4, i64 32
  %75 = getelementptr inbounds i8, ptr %15, i64 1576
  %76 = load float, ptr %75, align 8, !tbaa !40
  %77 = extractelement <2 x float> %63, i64 1
  %78 = tail call { <2 x float>, float } @b2MakeSoft(float noundef %69, float noundef %76, float noundef %77)
  %.fca.0.extract10 = extractvalue { <2 x float>, float } %78, 0
  %.fca.1.extract11 = extractvalue { <2 x float>, float } %78, 1
  store <2 x float> %.fca.0.extract10, ptr %74, align 8
  %.sroa.415.0..sroa_idx = getelementptr inbounds i8, ptr %4, i64 40
  store float %.fca.1.extract11, ptr %.sroa.415.0..sroa_idx, align 8, !tbaa !41
  %79 = getelementptr inbounds i8, ptr %4, i64 44
  %80 = fmul float %69, 2.000000e+00
  %81 = load float, ptr %75, align 8, !tbaa !40
  %82 = tail call { <2 x float>, float } @b2MakeSoft(float noundef %80, float noundef %81, float noundef %77)
  %.fca.0.extract4 = extractvalue { <2 x float>, float } %82, 0
  %.fca.1.extract5 = extractvalue { <2 x float>, float } %82, 1
  store <2 x float> %.fca.0.extract4, ptr %79, align 4
  %.sroa.49.0..sroa_idx = getelementptr inbounds i8, ptr %4, i64 52
  store float %.fca.1.extract5, ptr %.sroa.49.0..sroa_idx, align 4, !tbaa !41
  %83 = getelementptr inbounds i8, ptr %4, i64 20
  %84 = getelementptr inbounds i8, ptr %15, i64 1584
  %85 = load float, ptr %84, align 8, !tbaa !42
  %86 = tail call { <2 x float>, float } @b2MakeSoft(float noundef %73, float noundef %85, float noundef %77)
  %.fca.0.extract = extractvalue { <2 x float>, float } %86, 0
  %.fca.1.extract = extractvalue { <2 x float>, float } %86, 1
  store <2 x float> %.fca.0.extract, ptr %83, align 4
  %.sroa.4.0..sroa_idx = getelementptr inbounds i8, ptr %4, i64 28
  store float %.fca.1.extract, ptr %.sroa.4.0..sroa_idx, align 4, !tbaa !41
  %87 = getelementptr inbounds i8, ptr %15, i64 1560
  %88 = getelementptr inbounds i8, ptr %4, i64 56
  %89 = load <2 x float>, ptr %87, align 8, !tbaa !41
  store <2 x float> %89, ptr %88, align 8, !tbaa !41
  %90 = getelementptr inbounds i8, ptr %15, i64 1800
  %91 = load i8, ptr %90, align 8, !tbaa !43, !range !25, !noundef !26
  %92 = getelementptr inbounds i8, ptr %4, i64 172
  store i8 %91, ptr %92, align 4, !tbaa !44
  %93 = tail call i64 @b2GetTicks() #7
  call void @b2Collide(ptr noundef nonnull %4)
  %94 = call float @b2GetMilliseconds(i64 noundef %93) #7
  %95 = getelementptr inbounds i8, ptr %15, i64 1620
  store float %94, ptr %95, align 4, !tbaa !45
  %96 = load float, ptr %4, align 8, !tbaa !35
  %97 = fcmp ogt float %96, 0.000000e+00
  br i1 %97, label %98, label %102

98:                                               ; preds = %41
  %99 = call i64 @b2GetTicks() #7
  call void @b2Solve(ptr noundef nonnull %15, ptr noundef nonnull %4) #7
  %100 = call float @b2GetMilliseconds(i64 noundef %99) #7
  %101 = getelementptr inbounds i8, ptr %15, i64 1624
  store float %100, ptr %101, align 4, !tbaa !46
  br label %102

102:                                              ; preds = %98, %41
  %103 = call i64 @b2GetTicks() #7
  call void @b2OverlapSensors(ptr noundef nonnull %15) #7
  %104 = call float @b2GetMilliseconds(i64 noundef %103) #7
  %105 = getelementptr inbounds i8, ptr %15, i64 1696
  store float %104, ptr %105, align 4, !tbaa !47
  %106 = call float @b2GetMilliseconds(i64 noundef %44) #7
  store float %106, ptr %28, align 4, !tbaa !48
  %107 = call i32 @b2GetArenaAllocation(ptr noundef nonnull %15) #7
  %108 = icmp eq i32 %107, 0
  br i1 %108, label %112, label %109

109:                                              ; preds = %102
  %110 = call i32 @b2InternalAssertFcn(ptr noundef nonnull @.str.16, ptr noundef nonnull @.str.1, i32 noundef 803) #7
  %.not75 = icmp eq i32 %110, 0
  br i1 %.not75, label %112, label %111

111:                                              ; preds = %109
  call void @llvm.trap()
  unreachable

112:                                              ; preds = %109, %102
  call void @b2GrowArena(ptr noundef nonnull %15) #7
  %113 = load i32, ptr %42, align 4, !tbaa !28
  %114 = icmp eq i32 %113, 0
  br i1 %114, label %118, label %115

115:                                              ; preds = %112
  %116 = call i32 @b2InternalAssertFcn(ptr noundef nonnull @.str.17, ptr noundef nonnull @.str.1, i32 noundef 809) #7
  %.not76 = icmp eq i32 %116, 0
  br i1 %.not76, label %118, label %117

117:                                              ; preds = %115
  call void @llvm.trap()
  unreachable

118:                                              ; preds = %115, %112
  %119 = getelementptr inbounds i8, ptr %15, i64 1448
  %120 = load i32, ptr %119, align 8, !tbaa !27
  %121 = sub nsw i32 1, %120
  store i32 %121, ptr %119, align 8, !tbaa !27
  %122 = getelementptr inbounds i8, ptr %15, i64 1384
  %123 = sext i32 %121 to i64
  %124 = getelementptr inbounds %struct.b2SensorEndTouchEventArray, ptr %122, i64 %123
  call void @b2SensorEndTouchEventArray_Clear(ptr noundef nonnull %124)
  %125 = getelementptr inbounds i8, ptr %15, i64 1416
  %126 = load i32, ptr %119, align 8, !tbaa !27
  %127 = sext i32 %126 to i64
  %128 = getelementptr inbounds %struct.b2ContactEndTouchEventArray, ptr %125, i64 %127
  call void @b2ContactEndTouchEventArray_Clear(ptr noundef nonnull %128)
  store i8 0, ptr %16, align 1, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 312, ptr nonnull %4) #7
  br label %129

129:                                              ; preds = %22, %118, %30
  ret void
}

declare zeroext i1 @b2IsValidFloat(float noundef) local_unnamed_addr #2

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @b2BodyMoveEventArray_Clear(ptr noundef) local_unnamed_addr #6

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @b2SensorBeginTouchEventArray_Clear(ptr noundef) local_unnamed_addr #6

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @b2ContactBeginTouchEventArray_Clear(ptr noundef) local_unnamed_addr #6

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @b2ContactHitEventArray_Clear(ptr noundef) local_unnamed_addr #6

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @b2SensorEndTouchEventArray_Clear(ptr noundef) local_unnamed_addr #6

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @b2ContactEndTouchEventArray_Clear(ptr noundef) local_unnamed_addr #6

declare i64 @b2GetTicks() local_unnamed_addr #2

declare void @b2UpdateBroadPhasePairs(ptr noundef) local_unnamed_addr #2

declare float @b2GetMilliseconds(i64 noundef) local_unnamed_addr #2

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @b2MaxInt(i32 noundef, i32 noundef) local_unnamed_addr #6

; Function Attrs: inlinehint nounwind uwtable
declare hidden float @b2MinFloat(float noundef, float noundef) local_unnamed_addr #6

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

; Function Attrs: nounwind uwtable
declare hidden void @b2Collide(ptr noundef) local_unnamed_addr #1

declare void @b2Solve(ptr noundef, ptr noundef) local_unnamed_addr #2

declare void @b2OverlapSensors(ptr noundef) local_unnamed_addr #2

declare i32 @b2GetArenaAllocation(ptr noundef) local_unnamed_addr #2

declare void @b2GrowArena(ptr noundef) local_unnamed_addr #2

attributes #0 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #1 = { 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 = { "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 = { cold noreturn nounwind memory(inaccessiblemem: write) }
attributes #4 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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 #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, !24, i64 1799}
!6 = !{!"b2World", !7, i64 0, !13, i64 40, !16, i64 336, !17, i64 1008, !12, i64 1032, !17, i64 1048, !12, i64 1072, !17, i64 1088, !12, i64 1112, !17, i64 1128, !12, i64 1152, !17, i64 1168, !12, i64 1192, !17, i64 1208, !17, i64 1232, !12, i64 1256, !12, i64 1272, !12, i64 1288, !12, i64 1304, !12, i64 1320, !12, i64 1336, !12, i64 1352, !12, i64 1368, !9, i64 1384, !9, i64 1416, !11, i64 1448, !12, i64 1456, !18, i64 1472, !18, i64 1488, !18, i64 1504, !18, i64 1520, !19, i64 1536, !11, i64 1544, !20, i64 1548, !21, i64 1556, !21, i64 1560, !21, i64 1564, !21, i64 1568, !21, i64 1572, !21, i64 1576, !21, i64 1580, !21, i64 1584, !8, i64 1592, !8, i64 1600, !22, i64 1608, !23, i64 1612, !8, i64 1704, !8, i64 1712, !8, i64 1720, !8, i64 1728, !11, i64 1736, !8, i64 1744, !8, i64 1752, !8, i64 1760, !8, i64 1768, !8, i64 1776, !21, i64 1784, !11, i64 1788, !11, i64 1792, !22, i64 1796, !24, i64 1798, !24, i64 1799, !24, i64 1800, !24, i64 1801, !24, i64 1802, !24, i64 1803}
!7 = !{!"b2ArenaAllocator", !8, i64 0, !11, i64 8, !11, i64 12, !11, i64 16, !11, i64 20, !12, i64 24}
!8 = !{!"any pointer", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!"int", !9, i64 0}
!12 = !{!"", !8, i64 0, !11, i64 8, !11, i64 12}
!13 = !{!"b2BroadPhase", !9, i64 0, !11, i64 216, !14, i64 224, !12, i64 240, !8, i64 256, !8, i64 264, !11, i64 272, !15, i64 276, !14, i64 280}
!14 = !{!"b2HashSet", !8, i64 0, !11, i64 8, !11, i64 12}
!15 = !{!"b2AtomicInt", !11, i64 0}
!16 = !{!"b2ConstraintGraph", !9, i64 0}
!17 = !{!"b2IdPool", !12, i64 0, !11, i64 16}
!18 = !{!"b2BitSet", !8, i64 0, !11, i64 8, !11, i64 12}
!19 = !{!"long", !9, i64 0}
!20 = !{!"b2Vec2", !21, i64 0, !21, i64 4}
!21 = !{!"float", !9, i64 0}
!22 = !{!"short", !9, i64 0}
!23 = !{!"b2Profile", !21, i64 0, !21, i64 4, !21, i64 8, !21, i64 12, !21, i64 16, !21, i64 20, !21, i64 24, !21, i64 28, !21, i64 32, !21, i64 36, !21, i64 40, !21, i64 44, !21, i64 48, !21, i64 52, !21, i64 56, !21, i64 60, !21, i64 64, !21, i64 68, !21, i64 72, !21, i64 76, !21, i64 80, !21, i64 84}
!24 = !{!"_Bool", !9, i64 0}
!25 = !{i8 0, i8 2}
!26 = !{}
!27 = !{!6, !11, i64 1448}
!28 = !{!6, !11, i64 1788}
!29 = !{!6, !11, i64 1792}
!30 = !{!6, !21, i64 1616}
!31 = !{!32, !8, i64 64}
!32 = !{!"b2StepContext", !21, i64 0, !21, i64 4, !21, i64 8, !21, i64 12, !11, i64 16, !33, i64 20, !33, i64 32, !33, i64 44, !21, i64 56, !21, i64 60, !8, i64 64, !8, i64 72, !8, i64 80, !8, i64 88, !8, i64 96, !11, i64 104, !8, i64 112, !15, i64 120, !8, i64 128, !8, i64 136, !8, i64 144, !11, i64 152, !11, i64 156, !8, i64 160, !11, i64 168, !24, i64 172, !9, i64 173, !34, i64 240, !9, i64 244}
!33 = !{!"b2Softness", !21, i64 0, !21, i64 4, !21, i64 8}
!34 = !{!"b2AtomicU32", !11, i64 0}
!35 = !{!32, !21, i64 0}
!36 = !{!32, !11, i64 16}
!37 = !{!6, !21, i64 1784}
!38 = !{!6, !21, i64 1572}
!39 = !{!6, !21, i64 1580}
!40 = !{!6, !21, i64 1576}
!41 = !{!21, !21, i64 0}
!42 = !{!6, !21, i64 1584}
!43 = !{!6, !24, i64 1800}
!44 = !{!32, !24, i64 172}
!45 = !{!6, !21, i64 1620}
!46 = !{!6, !21, i64 1624}
!47 = !{!6, !21, i64 1696}
!48 = !{!6, !21, i64 1612}


; Effective O3 passes: CorrelatedValuePropagationPass,DSEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,MemCpyOptPass,MergedLoadStoreMotionPass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass